class ABC(XYZ):
t2 = models.PositiveSmallIntegerField(default=2)
class DEF(ABC):
t3 = models.PositiveSmallIntegerField(default=3)
}}}
When running this code
{{{
a=ADEF(t3=4)
a.save()
}}}
everything is ok.
However, calling a.save a second time will cause:
{{{
IntegrityError: (1062, "Duplicate entry '51a29210bbe64e13af5786968b54046a'
for key 'PRIMARY'")
}}}
on a MySQL host.
--
Ticket URL: <https://code.djangoproject.com/ticket/24608>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
On sqlite3 backend, the error will be:
{{{
InterfaceError: Error binding parameter 1 - probably unsupported type.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24608#comment:1>
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted
Comment:
Can reproduce with the attached test.
--
Ticket URL: <https://code.djangoproject.com/ticket/24608#comment:2>
* Attachment "24608-test.diff" added.
* status: new => closed
* resolution: => duplicate
Comment:
Seems to be fixed by #24611 which has a patch.
--
Ticket URL: <https://code.djangoproject.com/ticket/24608#comment:3>