mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #19425 - Added InlineModelAdmin.get_extra hook.
Thanks dave@ for the suggestion and Rohan Jain for the patch.
This commit is contained in:
parent
7902fd74f1
commit
36aecb12b8
6 changed files with 65 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue