Skip to content

Commit

Permalink
modified exclude in forms to exclude m2m field
Browse files Browse the repository at this point in the history
  • Loading branch information
omkarvijay5 committed Sep 8, 2014
1 parent 6ade3c3 commit 83d0b5d
Showing 1 changed file with 2 additions and 2 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']
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']
exclude = ['creator', 'slug', 'show', 'group', 'attending_events']

def __init__(self, *args, **kwargs):
super(UpdateEventForm, self).__init__(*args, **kwargs)
Expand Down

0 comments on commit 83d0b5d

Please sign in to comment.