Skip to content

Commit

Permalink
Fix migration error
Browse files Browse the repository at this point in the history
  • Loading branch information
marioba committed Feb 8, 2022
1 parent a7791fb commit a34b6ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions comptages/datamodel/migrations/0025_auto_20220204_1353.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,4 @@ class Migration(migrations.Migration):
name='id_model',
field=models.ForeignKey(db_column='id_model', on_delete=django.db.models.deletion.DO_NOTHING, to='comptages.model'),
),
migrations.AlterUniqueTogether(
name='modelclass',
unique_together=set(),
),
]
1 change: 1 addition & 0 deletions comptages/datamodel/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ class ModelClass(models.Model):

class Meta:
db_table = 'model_class'
unique_together = (('id_model', 'id_class'),)


class Section(models.Model):
Expand Down

0 comments on commit a34b6ca

Please sign in to comment.