Skip to content

Commit

Permalink
Revert "Chaned the relationship name between Event and User."
Browse files Browse the repository at this point in the history
This reverts commit ee5cb45.
  • Loading branch information
akshar-raaj committed Sep 9, 2014
1 parent ee5cb45 commit 59cba10
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 33 deletions.
4 changes: 2 additions & 2 deletions tavern/forms.py
Expand Up @@ -20,7 +20,7 @@ class CreateEventForm(forms.ModelForm):

class Meta:
model = Event
exclude = ['creator', 'slug', 'show', 'attendees']
exclude = ['creator', 'slug', 'show', 'attending_events']

def __init__(self, *args, **kwargs):
self.user = kwargs.pop('current_user', None)
Expand All @@ -44,7 +44,7 @@ class UpdateEventForm(forms.ModelForm):

class Meta:
model = Event
exclude = ['creator', 'slug', 'show', 'group', 'attendees']
exclude = ['creator', 'slug', 'show', 'group', 'attending_events']

def __init__(self, *args, **kwargs):
super(UpdateEventForm, self).__init__(*args, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion tavern/models.py
Expand Up @@ -86,7 +86,7 @@ class Event(models.Model):
ends_at = models.DateTimeField(null=True, blank=True)
location = models.TextField(null=True, blank=True)

attendees = models.ManyToManyField(User, through="Attendee",
attending_events = models.ManyToManyField(User, through="Attendee",
related_name="events_attending")
slug = models.SlugField(max_length=250)

Expand Down
Empty file removed tavern/templatetags/__init__.py
Empty file.
30 changes: 0 additions & 30 deletions tavern/templatetags/tavern_tags.py

This file was deleted.

0 comments on commit 59cba10

Please sign in to comment.