Opened 17 years ago

Closed 16 years ago

#5426 closed (wontfix)

[newforms-admin] - uncapfirst tag and utility function

Reported by: Petr Marhoun <petr.marhoun@…> Owned by: nobody
Component: contrib.admin Version: newforms-admin
Severity: Keywords: admin, templates, tags
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description


Attachments (2)

uncapfirst.diff (1.6 KB ) - added by Petr Marhoun <petr.marhoun@…> 17 years ago.
uncapfirst-with-tests.diff (2.6 KB ) - added by Petr Marhoun <petr.marhoun@…> 17 years ago.

Download all attachments as: .zip

Change History (6)

by Petr Marhoun <petr.marhoun@…>, 17 years ago

Attachment: uncapfirst.diff added

comment:1 by Petr Marhoun <petr.marhoun@…>, 17 years ago

See http://groups.google.com/group/django-developers/browse_thread/thread/2d8a06071553eafe/1c6587f10052814a#1c6587f10052814a

I would like this mapping:

  • Contact -> contact
  • Some field with many words -> some field with many words
  • ORM framework -> ORM framework

I have many fields with abbreviation at the beginning. I don't want to
uncapitalize it. So I propose this rule - the first letter has to be
low only if the second letter is low.

comment:2 by jkocherhans, 17 years ago

Resolution: wontfix
Status: newclosed

I don't think this is a common enough case to include in Django. It's probably more appropriate as a thrid-party add-on.

comment:3 by Petr Marhoun <petr.marhoun@…>, 17 years ago

Resolution: wontfix
Status: closedreopened

I completely agree with you that it is not common case - I have never use it directly. But it is precondition for problem described in the linked django-developers' message - now also in #5518. So I reopened it because I think it should be resolved together with that ticket.

by Petr Marhoun <petr.marhoun@…>, 17 years ago

Attachment: uncapfirst-with-tests.diff added

comment:4 by jkocherhans, 16 years ago

Resolution: wontfix
Status: reopenedclosed

Please see my last comment on #5518 about why I'm closing this. If you still strongly disagree, please bring the issue up on django-developers and explain the problem you're trying to solve.

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