Opened 14 years ago

Last modified 14 years ago

#13955 closed

capitalization of ForeignKey — at Initial Version

Reported by: jason@… Owned by: nobody
Component: contrib.admin Version: 1.2
Severity: 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 a Model,

class Report(models.Model):

report_number = models.CharField('NCAC report number', primary_key=True)

I've set the name for the capitalization of the acronym.

When I use the Model as a ForeignKey,

class RSL(models.Model):

report_number = models.ForeignKey('Report', null=True)

the capitalization of the field name is lost, it will show up as 'Ncac report number' in the admin view for the RSL database.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top