Changes between Version 13 and Version 14 of new_meta_api
- Timestamp:
- Jul 11, 2014, 7:00:51 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
new_meta_api
v13 v14 186 186 187 187 {{{ 188 >>> User._meta.get_ new_field('username') # A data field188 >>> User._meta.get_field('username') # A data field 189 189 <django.db.models.fields.CharField: username> 190 190 191 >>> User._meta.get_ new_field('logentry', related_objects=True) # A related object191 >>> User._meta.get_field('logentry', related_objects=True) # A related object 192 192 <RelatedObject: admin:logentry related to user> 193 193 … … 197 197 <django.db.models.fields.related.ForeignKey: user> 198 198 199 >>> User._meta.get_ new_field('does_not_exist') # A non existent field199 >>> User._meta.get_field('does_not_exist') # A non existent field 200 200 *** FieldDoesNotExist: User has no field named 'does_not_exist' 201 201 }}}