Commit 2303c5bd authored by Florent Chehab's avatar Florent Chehab
Browse files

Fixed unique together in tagitems

parent c16448c0
......@@ -14,7 +14,7 @@ class CampusTaggedItem(TaggedItem):
return CampusTaggedItemSerializer
class Meta:
unique_together = ('campus', 'tag')
unique_together = ('campus', 'tag', 'importance_level')
class CampusTaggedItemSerializer(TaggedItemSerializer):
......
......@@ -15,7 +15,7 @@ class CityTaggedItem(TaggedItem):
return CityTaggedItemSerializer
class Meta:
unique_together = ('city', 'tag')
unique_together = ('city', 'tag', 'importance_level')
class CityTaggedItemSerializer(TaggedItemSerializer):
......
......@@ -14,7 +14,7 @@ class CountryTaggedItem(TaggedItem):
return CountryTaggedItemSerializer
class Meta:
unique_together = ('country', 'tag')
unique_together = ('country', 'tag', 'importance_level')
class CountryTaggedItemSerializer(TaggedItemSerializer):
......
......@@ -14,7 +14,7 @@ class UniversityTaggedItem(TaggedItem):
return UniversityTaggedItemSerializer
class Meta:
unique_together = ('university', 'tag')
unique_together = ('university', 'tag', 'importance_level')
class UniversityTaggedItemSerializer(TaggedItemSerializer):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment