Showing
2 changed files
with
1 additions
and
2 deletions
@@ -63,7 +63,6 @@ class Migration(migrations.Migration): | @@ -63,7 +63,6 @@ class Migration(migrations.Migration): | ||
63 | models.UUIDField( | 63 | models.UUIDField( |
64 | default=uuid.uuid4, | 64 | default=uuid.uuid4, |
65 | editable=False, | 65 | editable=False, |
66 | - primary_key=True, | ||
67 | serialize=False, | 66 | serialize=False, |
68 | unique=True, | 67 | unique=True, |
69 | ), | 68 | ), |
@@ -31,7 +31,7 @@ class Edicto(models.Model): | @@ -31,7 +31,7 @@ class Edicto(models.Model): | ||
31 | verbose_name = 'Edicto' | 31 | verbose_name = 'Edicto' |
32 | verbose_name_plural = 'Edictos' | 32 | verbose_name_plural = 'Edictos' |
33 | 33 | ||
34 | - uuid = models.UUIDField(unique=True, editable=False, default=uuid4, primary_key=True) | 34 | + uuid = models.UUIDField(unique=True, editable=False, default=uuid4) |
35 | cuerpo_edicto = models.TextField(blank=False) | 35 | cuerpo_edicto = models.TextField(blank=False) |
36 | archivo = models.FileField(upload_to="uploads/%Y/%m/%d/") | 36 | archivo = models.FileField(upload_to="uploads/%Y/%m/%d/") |
37 | dias_publicar = models.PositiveIntegerField() | 37 | dias_publicar = models.PositiveIntegerField() |
-
Please register or login to post a comment