#13955: capitalization of ForeignKey
-------------------------------------------+--------------------------------
Reporter: [email protected] | Owner: nobody
Status: new | Milestone:
Component: django.contrib.admin | Version: 1.2
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Changes (by Alex):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Old 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.
New 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.
Comment:
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.
--
Ticket URL: <http://code.djangoproject.com/ticket/13955#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.