python - django admin: changing the way a field (w/ relationship to another model) is submitted on a form so that it can be submitted multiple times -


struggling find exact wording need use images.

i have model called statements , want change way admin page editing or submitting statement looks. particularly field statement has called statement-contexts. right now, doesn't accurately represent field supposed , doesn't accomodate multiple entries. a picture of statement-contexts field appears when on statements submit page.

statement-contexts draws many-to-many relationship model called context. context consists of 2 fields pair 2 words: word field , keyword field draws many many relationship model keyword, pool of keywords in database.

this drop down menu doesn't accomodate submitting pair of words that's supposed comprise statement-contexts, beyond selecting 2 words (which hope indicate context's word field , keyword field respectively.

it isn't user friendly since people have submit many pairs of contexts , keywords. more 1 drop down menu needed, , way see many different pairs of words need add.

so need figure out how change interface.

i looking @ creating formset on statements because ideally, if form generated statement-contexts want field able repeat as user needs, in trying apply them situation (even in python shell) getting repeated errors , crashes, made me start question if had valid strategy begin with.

i'm @ loss finding resources on editing admin interface. apologize if question basic or input appreciated.

edit: http://whoisnicoleharris.com/2015/01/06/implementing-django-formsets.html documentation inspired me try using formsets. matter of fact, first gif animation uses display formsets ideally want when submits new statement-context. , situation describes of nesting formset within form sounds relevant.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -