I've got a model where I need to store birth year. I'm using django admin. The person using this will be filling out loads of people every day, and DateField() shows too much (not interested in the day/month).
This is a mockup model showing how it is now:
class Person(models.Model):
name = models.CharField(max_length=256)
born = models.IntegerField(default=date.today().year - 17)
As you can see, most of the people is 17 years old, so I'm getting their birth year as default.
Can I do this better? How can I make a YearField out of the DateField? If making a YearField I can maybe even make some "easy tags" like the "now" that date has. (Of course, a specialized BornYearField would have easy buttons for 1989, 1990, 1991 and other common years)