diff --git a/proposals/forms.py b/proposals/forms.py index d0620c4..0f78faa 100644 --- a/proposals/forms.py +++ b/proposals/forms.py @@ -31,7 +31,7 @@ class TalkForm(forms.ModelForm): class Meta: model = Talk - fields = ['title', 'abstract', 'description', 'topics', 'track', 'notes', 'event', 'speakers', 'duration', 'start_date', 'room'] + fields = ['title', 'abstract', 'description', 'topics', 'track', 'notes', 'event', 'speakers', 'duration', 'start_date', 'room', 'registration_required', 'attendees_limit'] widgets = {'topics': forms.CheckboxSelectMultiple(), 'speakers': Select2TagWidget()} help_texts = { 'abstract': _('Should be less than 255 characters'), diff --git a/proposals/models.py b/proposals/models.py index f789ece..7c9b7ae 100644 --- a/proposals/models.py +++ b/proposals/models.py @@ -200,7 +200,7 @@ class Talk(PonyConfModel): return None @property - def remaining_attendee(self): + def remaining_attendees(self): if self.registration_required and self.attendees_limit: return self.attendees_limit - self.attendees.count() else: diff --git a/proposals/templates/proposals/talk_edit.html b/proposals/templates/proposals/talk_edit.html index f620bdb..e6cc4bb 100644 --- a/proposals/templates/proposals/talk_edit.html +++ b/proposals/templates/proposals/talk_edit.html @@ -20,4 +20,17 @@ {% block js_end %} {{ block.super }} {{ form.media.js }} + {% endblock js_end %}