Skip to content
Snippets Groups Projects
Unverified Commit 50e848ef authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Make books unique only fo one school.

parent 967d895e
No related branches found
No related tags found
No related merge requests found
# Generated by Django 2.2.3 on 2019-07-30 20:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0010_auto_20190730_2237'),
('exlibris', '0006_school_book'),
]
operations = [
migrations.AlterUniqueTogether(
name='book',
unique_together={('school', 'title', 'author', 'edition', 'year')},
),
]
......@@ -34,7 +34,7 @@ class Book(SchoolRelated):
return True
class Meta:
unique_together = [['title', 'author', 'edition', 'year']]
unique_together = [['school', 'title', 'author', 'edition', 'year']]
class BookCopy(models.Model):
......
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