I would like my django application to serve a list of any model\'s fields (this will help the GUI build itself).
Imagine the classes (ignore the fact that all field
This was changed (in 1.8 I think) and Olivier's answer doesn't work anymore. According to the docs, the new way is
[f for f in User._meta.get_fields() if f.auto_created and not f.concrete]
This includes one-to-one, many-to-one, and many-to-many.