1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #13963 -- Use the correct verbose name of a reverse relation field in the admin. Thanks, sfllaw and d0ugal.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14244 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel
2010-10-17 15:17:52 +00:00
parent 400125d718
commit 214dc97bf3
3 changed files with 37 additions and 4 deletions

View File

@@ -1,7 +1,5 @@
from django.db import models
class Article(models.Model):
"""
A simple Article model for testing
@@ -20,3 +18,16 @@ class Article(models.Model):
class Count(models.Model):
num = models.PositiveSmallIntegerField()
class Event(models.Model):
date = models.DateTimeField(auto_now_add=True)
class Location(models.Model):
event = models.OneToOneField(Event, verbose_name='awesome event')
class Guest(models.Model):
event = models.OneToOneField(Event)
name = models.CharField(max_length=255)
class Meta:
verbose_name = "awesome guest"