ErwinKomen / RU-collbank

0 stars 1 forks source link

Remove some pulldown menus #16

Closed ErwinKomen closed 8 years ago

ErwinKomen commented 8 years ago

Remove pulldown menus for Linguality, SpeechCorpus, Access, Documentation, Validation. These are confusing and invite to making serious mistakes.

Desired result:

ErwinKomen commented 8 years ago

The solution probably is to also use the reduction (as in issue #17) for the foreignkeys

ErwinKomen commented 8 years ago

Yes, this works. I implement this for all models by adding appropriate lines to the admin.py, in the "formfield_for_dbfield()" function for each class.

Resource: media Provenance: temporalProvenance Access: nonCommercialUsageOnly Validation: type Project: url Collection: linguality, access, documentation, validation, writtenCorpus, speechCorpus

Done.