Remove unique constraint from initial field

This commit is contained in:
Benjamin Bach 2024-08-14 11:35:00 +02:00
parent e519383741
commit b0259f5bf4
No known key found for this signature in database
GPG key ID: 486F0D69C845416E

View file

@ -21,7 +21,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='membership',
name='referral_code',
field=models.UUIDField(blank=True, null=True, unique=True, default=uuid.uuid4, editable=False),
field=models.UUIDField(blank=True, null=True, default=uuid.uuid4, editable=False),
),
migrations.RunPython(create_uuid),
migrations.AlterField(