Changes between Version 8 and Version 9 of new_meta_api


Ignore:
Timestamp:
Jul 11, 2014, 6:19:30 AM (10 years ago)
Author:
pirosb3
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • new_meta_api

    v8 v9  
    130130The new API is composed of 2 main functions: get_fields, and get_field.
    131131
    132 ==== get_fields(m2m, data, related_m2m, related_objects, virtual, include_parents, include_non_concrete, include_hidden, include_proxy)
     132===== get_fields
     133
     134{{{
     135    def get_fields(self, m2m=False, data=True, related_m2m=False, related_objects=False, virtual=False,
     136                       include_parents=True, include_non_concrete=True, include_hidden=False, include_proxy=False, recursive=False):
     137}}}
    133138
    134139get_fields takes a set of flags as parameters, and returns a tuple of field instances that match those parameters. All possible combinations of
     
    136141get_fields is internally cached for speed and a recursive function that collects fields from each parent of the model.
    137142An example of every (sane) combination of flags will be available in the model_meta test suite that I will ship with the new API
     143
Back to Top