Skip to content

Commit

Permalink
refactor: remove certificate_uuid column
Browse files Browse the repository at this point in the history
  • Loading branch information
Adibov committed Jan 11, 2024
1 parent 8e76266 commit 1a883d9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Django 4.2.4 on 2024-01-11 15:37

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('backend_api', '0061_alter_presentationparticipation_certificate_and_more'),
]

operations = [
migrations.RemoveField(
model_name='presentationparticipation',
name='certificate_uuid',
),
migrations.RemoveField(
model_name='workshopregistration',
name='certificate_uuid',
),
]
2 changes: 0 additions & 2 deletions backend/backend_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ class StatusChoices(models.IntegerChoices):
user = models.ForeignKey(User, on_delete=models.CASCADE)
status = models.IntegerField(choices=StatusChoices.choices, default=StatusChoices.AWAITING_PAYMENT)
password = models.CharField(max_length=SMALL_MAX_LENGTH, default=random_password)
certificate_uuid = models.UUIDField(default=uuid.uuid4, editable=False, unique=True)
certificate = models.FileField(upload_to=update_certificate_filename, null=True, default=None, blank=True)

class Meta:
Expand All @@ -313,7 +312,6 @@ class StatusChoices(models.IntegerChoices):
user = models.ForeignKey(User, on_delete=models.CASCADE)
status = models.IntegerField(choices=StatusChoices.choices, default=StatusChoices.AWAITING_PAYMENT)
password = models.CharField(max_length=SMALL_MAX_LENGTH, default=random_password)
certificate_uuid = models.UUIDField(default=uuid.uuid4, editable=False, unique=True)
certificate = models.FileField(upload_to=update_certificate_filename, null=True, default=None, blank=True)

class Meta:
Expand Down

0 comments on commit 1a883d9

Please sign in to comment.