Opened 7 years ago

Closed 7 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: UI/UX:

Description


Attachments (2)

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

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by Petr Marhoun <petr.marhoun@…>

comment:1 Changed 7 years ago by Petr Marhoun <petr.marhoun@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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 Changed 7 years ago by jkocherhans

  • Resolution set to wontfix
  • Status changed from new to closed

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 Changed 7 years ago by Petr Marhoun <petr.marhoun@…>

  • Resolution wontfix deleted
  • Status changed from closed to reopened

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.

Changed 7 years ago by Petr Marhoun <petr.marhoun@…>

comment:4 Changed 7 years ago by jkocherhans

  • Resolution set to wontfix
  • Status changed from reopened to closed

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