Fixed migration problem with user & group, when changing from unique_together to constrains on Meta model

This commit is contained in:
Adolfo Gómez García 2021-06-24 12:27:43 +02:00
parent 856d645652
commit 55f9820f37
2 changed files with 2 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# Generated by Django 3.2.4 on 2021-06-24 12:01
# Generated by Django 3.2.4 on 2021-06-24 12:22
from django.db import migrations, models
@ -14,10 +14,6 @@ class Migration(migrations.Migration):
name='config',
unique_together=set(),
),
migrations.AlterUniqueTogether(
name='group',
unique_together=set(),
),
migrations.AlterUniqueTogether(
name='service',
unique_together=set(),

View File

@ -77,7 +77,7 @@ class Group(UUIDModel):
ordering = ('name',)
app_label = 'uds'
# unique_together = (("manager", "name"),)
unique_together = (("manager", "name"),)
# constraints = [
# models.UniqueConstraint(fields=['manager', 'name'], name='u_grp_manager_name')
# ]