Skip to content

Commit

Permalink
Add default_tags_schema to form_to_db_package_schema
Browse files Browse the repository at this point in the history
This fixes lots of "input field __junk was not expected" when running
the ckan tests with an IDatasetForm plugin active (and hence the
form_to_db package validation active).
  • Loading branch information
Sean Hammond committed Feb 13, 2013
1 parent fc61614 commit ec8f69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/logic/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ def form_to_db_package_schema():

##changes
schema.pop("id")
schema.pop('tags')
schema.pop('relationships_as_object')
schema.pop('revision_id')
schema.pop('relationships_as_subject')

return schema

def db_to_form_package_schema():
Expand Down

0 comments on commit ec8f69c

Please sign in to comment.