Re: Django modelform not saving foreignkey

2016-09-28 Thread Jonty Needham
Ignore this. Field was in excluded_fields which I thought only stopped the display of fields, but actually stops the data from that field getting into the model. On Wed, Sep 28, 2016 at 4:59 PM, Jonty Needham wrote: > I have the following code which is supposed to create a MyConfig object. > Ho

Django modelform not saving foreignkey

2016-09-28 Thread Jonty Needham
I have the following code which is supposed to create a MyConfig object. However, it doesn't as the app_model is always returned as None. The idea is to choose from a select few contenttypes and then add a key, and the resulting config will trigger a bunch of services. However whenever I save the