Opened 14 years ago

Last modified 13 years ago

#13955 closed

capitalization of ForeignKey — at Version 1

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 (last modified by Alex Gaynor)

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 (1)

comment:1 by Alex Gaynor, 14 years ago

Description: modified (diff)

I've reformatted the description of this ticket, in the future you can use the "Preview" button to ensure that your message is formatted the way you intended.

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