how to get all models in django code example Example: django get all model fields def get_model_fields(model): return model._meta.fields