get_fields_with_modelΒΆ

Returns a sequence of (field, model) pairs for all fields. The “model” element is None for fields on the current model. Mostly of use when constructing queries so that we know which model a field belongs to.