Re: Need help modifying form on intermediate page of admin action

2017-07-29 Thread Jack Twilley
I looked over those apps and I don't think they'll help with my issue. Let's say that Crate 1 has a capacity of 12 and currently holds 10 jars. If I look at the jars in Crate 2, select 3 of them, and then trigger the admin action to move the selected jars, Crate 1 should *not* be in the drop d

Re: Need help modifying form on intermediate page of admin action

2017-07-29 Thread Mark Phillips
You might find one of these helpful - https://github.com/digi604/django-smart-selects https://github.com/yourlabs/django-autocomplete-light Basically, you want a "chained select" that is populated after a value is entered by the user, if I understand the problem. If you want to roll your own, th

Need help modifying form on intermediate page of admin action

2017-07-29 Thread Jack Twilley
I have a Django app which keeps inventory. There are two relevant classes here, one named Jar and another named Crate. The Jar class has an attribute crate which is a foreign key for the Crate class. The Crate class has an attribute capacity of type models.IntegerField which represents the m