Changes between Initial Version and Version 1 of Ticket #24042
- Timestamp:
- Dec 23, 2014, 3:34:49 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24042 – Description
initial v1 1 Patch also available at https://github.com/django/django/pull/3776 2 1 3 The documentation (https://docs.djangoproject.com/en/dev/howto/custom-model-fields/#emulating-built-in-field-types) on Field.get_internal_type implies that it should define custom behavior and ensure that database-correct behavior is followed. For Postgres (though not for sqlite), specifying get_internal_type() to be "AutoField" fails to correctly set the field, leading to errors like this: 2 4