Unverified Commit e16ab863 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Allow to change since

auto_now_add overrides what's set by the user
parent 38aae6f9
...@@ -89,7 +89,7 @@ class CommitteeMembership(models.Model): ...@@ -89,7 +89,7 @@ class CommitteeMembership(models.Model):
since = models.DateField( since = models.DateField(
verbose_name=_('Committee member since'), verbose_name=_('Committee member since'),
help_text=_('The date this member joined the committee in this role'), help_text=_('The date this member joined the committee in this role'),
auto_now_add=True, default=lambda: timezone.now().date(),
) )
until = models.DateField( until = models.DateField(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment