diff --git a/commcare_connect/opportunity/migrations/0019_alter_opportunityclaim_date_claimed.py b/commcare_connect/opportunity/migrations/0019_alter_opportunityclaim_date_claimed.py new file mode 100644 index 00000000..35ff4b71 --- /dev/null +++ b/commcare_connect/opportunity/migrations/0019_alter_opportunityclaim_date_claimed.py @@ -0,0 +1,17 @@ +# Generated by Django 4.2.5 on 2023-10-03 14:31 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("opportunity", "0018_merge_20230919_2049"), + ] + + operations = [ + migrations.AlterField( + model_name="opportunityclaim", + name="date_claimed", + field=models.DateField(auto_now_add=True), + ), + ] diff --git a/commcare_connect/opportunity/models.py b/commcare_connect/opportunity/models.py index c2837153..8be8352a 100644 --- a/commcare_connect/opportunity/models.py +++ b/commcare_connect/opportunity/models.py @@ -205,4 +205,4 @@ class OpportunityClaim(models.Model): opportunity_access = models.OneToOneField(OpportunityAccess, on_delete=models.CASCADE) max_payments = models.IntegerField() end_date = models.DateField() - date_claimed = models.DateField(auto_created=True) + date_claimed = models.DateField(auto_now_add=True)