Changes between Initial Version and Version 1 of Ticket #24042


Ignore:
Timestamp:
Dec 23, 2014, 3:34:49 AM (9 years ago)
Author:
Lucas Wiman
Comment:

Pat

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24042 – Description

    initial v1  
     1Patch also available at https://github.com/django/django/pull/3776
     2
    13The  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:
    24
Back to Top