Skip to content
Snippets Groups Projects
Commit f2787ce3 authored by Julian's avatar Julian
Browse files

Remove tardiness value from unique_person_documentation_tardiness

parent a29a17d9
No related branches found
No related tags found
1 merge request!362Resolve "Add personal note management dialog in course book"
...@@ -80,7 +80,7 @@ class Migration(migrations.Migration): ...@@ -80,7 +80,7 @@ class Migration(migrations.Migration):
model_name='newpersonalnote', model_name='newpersonalnote',
constraint=models.UniqueConstraint( constraint=models.UniqueConstraint(
condition=models.Q(('tardiness', None), _negated=True), condition=models.Q(('tardiness', None), _negated=True),
fields=('person', 'documentation', 'tardiness'), fields=('person', 'documentation'),
name='unique_person_documentation_tardiness' name='unique_person_documentation_tardiness'
), ),
), ),
......
...@@ -848,7 +848,7 @@ class NewPersonalNote(ExtensibleModel): ...@@ -848,7 +848,7 @@ class NewPersonalNote(ExtensibleModel):
name="one_value_per_personal_note", name="one_value_per_personal_note",
), ),
models.UniqueConstraint( models.UniqueConstraint(
fields=["person", "documentation", "tardiness"], fields=["person", "documentation"],
name="unique_person_documentation_tardiness", name="unique_person_documentation_tardiness",
condition=~Q(tardiness=None) condition=~Q(tardiness=None)
), ),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment