diff --git a/argus/forms.py b/argus/forms.py index 681d7ae..768b793 100644 --- a/argus/forms.py +++ b/argus/forms.py @@ -21,15 +21,6 @@ class Meta: class BaseGroupCreateFormSet(BaseModelFormSet): - def __init__(self, *args, **kwargs): - # Patch in min_num value. See django ticket #17642 - # https://code.djangoproject.com/ticket/17642 - super(BaseGroupCreateFormSet, self).__init__(*args, **kwargs) - self.min_num = 1 - self.validate_min = True - if self.initial_form_count() == 0: - self.extra = 1 - def clean(self): super(BaseGroupCreateFormSet, self).clean() filled = sum([1 if form.cleaned_data else 0 @@ -62,6 +53,7 @@ def save(self): form=PartyForm, formset=BaseGroupCreateFormSet, extra=0, + min_num=1, fields=('name',)) diff --git a/test_project/requirements.txt b/test_project/requirements.txt index e7ab4b1..9e60f62 100644 --- a/test_project/requirements.txt +++ b/test_project/requirements.txt @@ -1,7 +1,8 @@ -https://www.djangoproject.com/download/1.7b1/tarball/ +# Latest Django 1.7 Stable, until 1.7 is released. +https://github.com/django/django/tarball/stable/1.7.x # Not strictly required, but we will definitely be using it eventually. Pillow==2.3.0 pytz==2013.9 django-floppyforms==1.1.1 # littleweaver-forms - @master until we reach a peggable point. -https://github.com/littleweaver/django-zenaida/tarball/master \ No newline at end of file +https://github.com/littleweaver/django-zenaida/tarball/master