Changes between Version 10 and Version 11 of new_meta_api
- Timestamp:
- Jul 11, 2014, 6:29:50 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
new_meta_api
v10 v11 143 143 144 144 {{{ 145 >>> User._meta.get_ new_fields() # Only data by default145 >>> User._meta.get_fields() # Only data by default 146 146 (<django.db.models.fields.AutoField: id>, 147 147 <django.db.models.fields.CharField: password>, … … 156 156 <django.db.models.fields.DateTimeField: date_joined>) 157 157 158 >>> User._meta.get_ new_fields(data=False, related_objects=True) # only related_objects158 >>> User._meta.get_fields(data=False, related_objects=True) # only related_objects 159 159 (<RelatedObject: admin:logentry related to user>,) 160 160 161 >>> User._meta.get_ new_fields(data=False, related_objects=True161 >>> User._meta.get_fields(data=False, related_objects=True 162 162 include_hidden=True) # only related_objects including hidden 163 163 (<RelatedObject: auth:user_groups related to user>,