Ticket #13516: django-ticket13516-v1.2.diff

File django-ticket13516-v1.2.diff, 479 bytes (added by manfre, 5 years ago)

Fix Django 1.2 to allow subclassing AutoField

  • django/db/models/fields/__init__.py

     
    459459        kwargs['blank'] = True
    460460        Field.__init__(self, *args, **kwargs)
    461461
     462    def get_internal_type(self):
     463        return "AutoField"
     464
    462465    def to_python(self, value):
    463466        if value is None:
    464467            return value
Back to Top