Don't put current date as default value for memberships
This commit is contained in:
parent
09c61091d5
commit
c0521005ef
|
@ -0,0 +1,23 @@
|
|||
# Generated by Django 2.2.24 on 2021-11-14 15:24
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('users', '0045_auto_20211114_1423'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='membership',
|
||||
name='date_end',
|
||||
field=models.DateField(verbose_name='start date'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='membership',
|
||||
name='date_start',
|
||||
field=models.DateField(verbose_name='start date'),
|
||||
),
|
||||
]
|
|
@ -88,12 +88,10 @@ class Membership(models.Model):
|
|||
)
|
||||
|
||||
date_start = models.DateField(
|
||||
auto_now_add=True,
|
||||
verbose_name=_('start date'),
|
||||
)
|
||||
|
||||
date_end = models.DateField(
|
||||
auto_now_add=True,
|
||||
verbose_name=_('start date'),
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue