I have a model with a from and to date:
class Event (models.Model):
start_date = models.DateField()
end_date = models.DateField()
In order to ensure start_date is always before end_date i can think of 3
options:
1. Use form validation iow in the clean method of an inherited form
2. Use the django.db.models.signals.pre_save signal
3. Create a custor field that takes an parameter of the date field wich must
allways be greater than or less than
What is the easiest way to achieve this?
Regards
Dirk
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=.