1
0
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:
Paulo Alvarado
2018-05-18 19:50:58 -04:00
committed by Tim Graham
parent a7bc1aea03
commit ffb72a95bc
4 changed files with 35 additions and 6 deletions

View File

@@ -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)