mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #29414 -- Restored form inputs on admin inlines when the user doesn't have the change permission.
Regression in 825f0beda8.
This commit is contained in:
committed by
Tim Graham
parent
a7bc1aea03
commit
ffb72a95bc
@@ -159,6 +159,12 @@ class Novel(models.Model):
|
||||
name = models.CharField(max_length=40)
|
||||
|
||||
|
||||
class NovelReadonlyChapter(Novel):
|
||||
|
||||
class Meta:
|
||||
proxy = True
|
||||
|
||||
|
||||
class Chapter(models.Model):
|
||||
name = models.CharField(max_length=40)
|
||||
novel = models.ForeignKey(Novel, models.CASCADE)
|
||||
|
||||
Reference in New Issue
Block a user