Fixed #19425 - Added InlineModelAdmin.get_extra hook.

Thanks dave@ for the suggestion and Rohan Jain for the patch.
This commit is contained in:
Tim Graham 2013-05-30 13:48:10 -04:00
parent 7902fd74f1
commit 36aecb12b8
6 changed files with 65 additions and 2 deletions

View file

@ -183,6 +183,12 @@ class ChildModel2(models.Model):
def get_absolute_url(self):
return '/child_model2/'
# Models for #19425
class BinaryTree(models.Model):
name = models.CharField(max_length=100)
parent = models.ForeignKey('self', null=True, blank=True)
# Models for #19524
class LifeForm(models.Model):