If I have a Datefield in django model, how can I get all possible months values from model objects? so if I have object1 with date = 22.01.2013 and object2 with date = 23.05.2013, I need to get list of months [01, 05] or [1, 5]
Get months from datefield in django
4.1k Views Asked by user1931780 At
2
You can do it like this: