Changes between Version 8 and Version 9 of new_meta_api
- Timestamp:
- Jul 11, 2014, 6:19:30 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
new_meta_api
v8 v9 130 130 The new API is composed of 2 main functions: get_fields, and get_field. 131 131 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 }}} 133 138 134 139 get_fields takes a set of flags as parameters, and returns a tuple of field instances that match those parameters. All possible combinations of … … 136 141 get_fields is internally cached for speed and a recursive function that collects fields from each parent of the model. 137 142 An 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