What is the best field type/field option for a model that should only contain the date and month.
class Reminder(models.Model):
person = models.OneToOneField(Person)
reminder_one = models.???
reminder_two = models.???
As I want to input a date that will act as a reminder each year I want to ensure no year is entered.
Thanks,
There are only two standard Django date fields-
DateFieldDateTimeFieldI suggest you use datefield and use the default querysets to sort by month and day:
QuerySets – Month
Otherwise, you would need to store the month and day as a string, and that gets messy and is just unnecessary.