What would be the best way to store year (YYYY) in a django model? I'm using a mysql backend.
start_year = models.SmallIntegerField(blank=True, null=True)
??
On second thought, since you're storing years, make it nonnegative.
start_year = models.PositiveSmallIntegerField(blank=True, null=True)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With