Commit 8d8f769de1241a8b2a31702f65339abb82b95153
1 parent
783ade44
Exists in
master
and in
3 other branches
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 | 11 | Adds validation to check that no two links have the same anchor or URL |
| 12 | 12 | and that all links have both an anchor and URL. |
| 13 | 13 | """ |
| 14 | - print("here 2") | |
| 15 | - print(self.errors) | |
| 16 | 14 | if any(self.errors): |
| 17 | 15 | return |
| 18 | 16 | |
| 19 | 17 | for form in self.forms: |
| 20 | - print(form) | |
| 18 | + pass | |
| 21 | 19 | |
| 22 | 20 | class ResourceAndTagForm(forms.Form): |
| 23 | 21 | |
| 24 | 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 | 25 | def __init__(self, *args, **kwargs): |
| 28 | 26 | super(ResourceAndTagForm, self).__init__(*args, **kwargs) | ... | ... |