mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #12654 - Correctly display ForeignKey fields in read-only scenarios. Thanks, minmax.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -6,6 +6,7 @@ class Article(models.Model):
|
||||
"""
|
||||
A simple Article model for testing
|
||||
"""
|
||||
site = models.ForeignKey('sites.Site', related_name="admin_articles")
|
||||
title = models.CharField(max_length=100)
|
||||
title2 = models.CharField(max_length=100, verbose_name="another name")
|
||||
created = models.DateTimeField()
|
||||
|
||||
Reference in New Issue
Block a user