diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
index 19c212d..7a5e93c 100644
a
|
b
|
class InlineModelAdmin(BaseModelAdmin):
|
1467 | 1467 | "fields": fields, |
1468 | 1468 | "exclude": exclude, |
1469 | 1469 | "formfield_callback": partial(self.formfield_for_dbfield, request=request), |
1470 | | "extra": self.extra, |
1471 | | "max_num": self.max_num, |
| 1470 | "extra": self.get_extra(), |
| 1471 | "max_num": self.get_max_num(), |
1472 | 1472 | "can_delete": can_delete, |
1473 | 1473 | } |
1474 | 1474 | defaults.update(kwargs) |
… |
… |
class InlineModelAdmin(BaseModelAdmin):
|
1519 | 1519 | return request.user.has_perm( |
1520 | 1520 | self.opts.app_label + '.' + self.opts.get_delete_permission()) |
1521 | 1521 | |
| 1522 | def get_extra(self): |
| 1523 | return self.extra |
| 1524 | |
| 1525 | def get_max_num(self): |
| 1526 | return self.max_num |
| 1527 | |
1522 | 1528 | |
1523 | 1529 | class StackedInline(InlineModelAdmin): |
1524 | 1530 | template = 'admin/edit_inline/stacked.html' |