mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +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:
parent
6c36e1034a
commit
267346678d
3 changed files with 48 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue