Skip to content

Commit

Permalink
[Closes #4584] Allow admins to decide if the Topic Category should be…
Browse files Browse the repository at this point in the history
… mandatory or not
  • Loading branch information
afabiani committed Jun 27, 2019
1 parent 96f9f00 commit 68daf73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion geonode/documents/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def document_metadata(
new_author = document_form.cleaned_data['metadata_author']
new_keywords = document_form.cleaned_data['keywords']
new_regions = document_form.cleaned_data['regions']

new_category = None
if category_form and 'category_choice_field' in category_form.cleaned_data and\
category_form.cleaned_data['category_choice_field']:
Expand Down
2 changes: 1 addition & 1 deletion geonode/maps/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def map_metadata(
new_regions = map_form.cleaned_data['regions']
new_title = strip_tags(map_form.cleaned_data['title'])
new_abstract = strip_tags(map_form.cleaned_data['abstract'])

new_category = None
if category_form and 'category_choice_field' in category_form.cleaned_data and\
category_form.cleaned_data['category_choice_field']:
Expand Down

0 comments on commit 68daf73

Please sign in to comment.