Skip to content

Commit

Permalink
Added a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
akshar-raaj committed Sep 12, 2014
1 parent f46b4a0 commit e9f7480
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tavern/models.py
Expand Up @@ -108,6 +108,8 @@ def get_absolute_url(self):
"group": self.group.slug})

def save(self, *args, **kwargs):
# This event's slug should not match a slug of any
# existing event in the same group.
slug_queryset = self.group.event_set.all()
unique_slugify(self, self.name, queryset=slug_queryset)
super(Event, self).save(*args, **kwargs)
Expand Down

0 comments on commit e9f7480

Please sign in to comment.