mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #15424 -- Corrected lookup of callables listed in admin inlines' readonly_fields
by passing the right ModelAdmin (sub)class instance when instantiating inline forms admin wrappers. Also, added early validation of its elements. Thanks kmike for the report and Karen for the patch fixing the issue.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15650 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4d70d48ecb
commit
0a9b5d7ade
7 changed files with 99 additions and 20 deletions
|
@ -45,3 +45,11 @@ class Book(models.Model):
|
|||
class AuthorsBooks(models.Model):
|
||||
author = models.ForeignKey(Author)
|
||||
book = models.ForeignKey(Book)
|
||||
|
||||
|
||||
class State(models.Model):
|
||||
name = models.CharField(max_length=15)
|
||||
|
||||
|
||||
class City(models.Model):
|
||||
state = models.ForeignKey(State)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue