| 144 | {{{ |
| 145 | >>> User._meta.get_new_fields() # Only data by default |
| 146 | (<django.db.models.fields.AutoField: id>, |
| 147 | <django.db.models.fields.CharField: password>, |
| 148 | <django.db.models.fields.DateTimeField: last_login>, |
| 149 | <django.db.models.fields.BooleanField: is_superuser>, |
| 150 | <django.db.models.fields.CharField: username>, |
| 151 | <django.db.models.fields.CharField: first_name>, |
| 152 | <django.db.models.fields.CharField: last_name>, |
| 153 | <django.db.models.fields.EmailField: email>, |
| 154 | <django.db.models.fields.BooleanField: is_staff>, |
| 155 | <django.db.models.fields.BooleanField: is_active>, |
| 156 | <django.db.models.fields.DateTimeField: date_joined>) |
| 157 | |
| 158 | >>> User._meta.get_new_fields(data=False, related_objects=True) # only related_objects |
| 159 | (<RelatedObject: admin:logentry related to user>,) |
| 160 | |
| 161 | >>> User._meta.get_new_fields(data=False, related_objects=True |
| 162 | include_hidden=True) # only related_objects including hidden |
| 163 | (<RelatedObject: auth:user_groups related to user>, |
| 164 | <RelatedObject: auth:user_user_permissions related to user>, |
| 165 | <RelatedObject: admin:logentry related to user>) |
| 166 | }}} |