Django ORM returns non-iterable object
The model is
The model is
How does one convert a django Model object to a dict with all of its fields? All ideally includes foreign keys and fields with editable=False.
I have a model something like this:
I have the following models:
I have been working on developing some RESTful Services in Django to be used with both Flash and Android apps.
I’m kind of new to webapps and database stuff in general so this might be a dumb question. I want to make a model (“CategoryModel”) with a field that points to the primary id of another instance of the model (its parent).
I have the following models: