1
0
mirror of https://github.com/django/django.git synced 2025-10-28 16:16:12 +00:00

Fixed #27967 -- Fixed KeyError in admin's inline form with inherited non-editable pk.

Thanks Robin Anupol for the initial report and workaround.
This commit is contained in:
Paulo
2017-06-09 20:54:10 -04:00
committed by Tim Graham
parent c68f5d83c0
commit 9dc83c356d
5 changed files with 34 additions and 6 deletions

View File

@@ -56,6 +56,10 @@ class NonAutoPKBook(models.Model):
super().save(*args, **kwargs)
class NonAutoPKBookChild(NonAutoPKBook):
pass
class EditablePKBook(models.Model):
manual_pk = models.IntegerField(primary_key=True)
author = models.ForeignKey(Author, models.CASCADE)