Opened 14 years ago
Closed 14 years ago
#16045 closed Uncategorized (duplicate)
Change history admin page not showing custom names for field in change history
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Uncategorized | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In the writing your first Django app tutorial part 2, once I update the date published field to today and now and view the change history, it states that I "changed pub_date" rather than "changed date published" even though the custom name is defined in my models.py file as shown below. Why is this and how do I change it?
from django.db import models
import datetime
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def unicode(self):
return self.question
def was_published_today(self):
return self.pub_date.date() == datetime.date.today()
class Choice(models.Model):
poll = models.ForeignKey(Poll)
choice = models.CharField(max_length=200)
votes = models.IntegerField()
def unicode(self):
return self.choice
duplicate of #12952