Changes between Version 13 and Version 14 of new_meta_api


Ignore:
Timestamp:
Jul 11, 2014, 7:00:51 AM (10 years ago)
Author:
pirosb3
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • new_meta_api

    v13 v14  
    186186
    187187{{{
    188     >>> User._meta.get_new_field('username') # A data field
     188    >>> User._meta.get_field('username') # A data field
    189189    <django.db.models.fields.CharField: username>
    190190
    191     >>> User._meta.get_new_field('logentry', related_objects=True) # A related object
     191    >>> User._meta.get_field('logentry', related_objects=True) # A related object
    192192    <RelatedObject: admin:logentry related to user>
    193193
     
    197197    <django.db.models.fields.related.ForeignKey: user>
    198198
    199     >>> User._meta.get_new_field('does_not_exist') # A non existent field
     199    >>> User._meta.get_field('does_not_exist') # A non existent field
    200200    *** FieldDoesNotExist: User has no field named 'does_not_exist'
    201201}}}
Back to Top