Commit 8d8f769de1241a8b2a31702f65339abb82b95153

Authored by fbormann
1 parent 783ade44

update

Showing 1 changed file with 2 additions and 4 deletions   Show diff stats
reports/forms.py
@@ -11,18 +11,16 @@ class BaseResourceAndTagFormset(BaseFormSet): @@ -11,18 +11,16 @@ class BaseResourceAndTagFormset(BaseFormSet):
11 Adds validation to check that no two links have the same anchor or URL 11 Adds validation to check that no two links have the same anchor or URL
12 and that all links have both an anchor and URL. 12 and that all links have both an anchor and URL.
13 """ 13 """
14 - print("here 2")  
15 - print(self.errors)  
16 if any(self.errors): 14 if any(self.errors):
17 return 15 return
18 16
19 for form in self.forms: 17 for form in self.forms:
20 - print(form) 18 + pass
21 19
22 class ResourceAndTagForm(forms.Form): 20 class ResourceAndTagForm(forms.Form):
23 21
24 resource = forms.ChoiceField(label=_("Kind Of Resource"), required=True) 22 resource = forms.ChoiceField(label=_("Kind Of Resource"), required=True)
25 - tag = forms.ChoiceField(label=_('Tag'), required=True) 23 + tag = forms.ChoiceField(label=_('Tag'))
26 24
27 def __init__(self, *args, **kwargs): 25 def __init__(self, *args, **kwargs):
28 super(ResourceAndTagForm, self).__init__(*args, **kwargs) 26 super(ResourceAndTagForm, self).__init__(*args, **kwargs)