#5518: [newform-admin] - capitalized verbose names for models
-----------------------------------------------------+----------------------
Reporter: Petr Marhoun <[EMAIL PROTECTED]> | Owner: nobody
Status: reopened | Component:
Internationalization
Version: newforms-admin | Resolution:
Keywords: admin, verbose_name | Stage:
Design decision needed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
-----------------------------------------------------+----------------------
Changes (by Petr Marhoun <[EMAIL PROTECTED]>):
* status: closed => reopened
* resolution: wontfix =>
Comment:
Replying to [comment:4 jkocherhans]:
> What's preventing you from using the {{{lower}}} filter where you need
it, or using all lowercase in your code?
1. Can I use "capfirst" verbose_name in my models? No, I can't -
django.contrib.admin is broken in this situation. Try to use it in your
models and check titles and messages in admin.
2. Can I use "uncapfirst" labels in my forms? No, I can't -
django.contrib.admin is broken again. Try to return a field with low first
letter from !ModelAdmin.formfield_for_dbfield (only an example, there are
many methods how to use your own formfields in admin) and check labels in
admin. It also breaks some utility functions from core (for example
!BaseForm.as_table).
(When I say "broken" I mean it doesn't look nice.)
I don't know if I can reopen the ticket it this situation (I am sorry if I
can't), but I disagree with your arguments. Application
django.contrib.admin '''prevents''' me to be consistent in my own code -
so I want to fix the application. (This ticket is not about django core.)
Maybe the resolution is right (I only say that arguments for this
resolution aren't right). But I think that django.contrib.admin do some
magic anyway - what if I want to have titles in admin with first letter
low (an example - class eCommerceType)? I only ask you for a little more -
it should'n hurt anyone and it could help some people.
> Enforcing capitalization in other people's code is none of Django's
business.
This change enforces nothing. On the contrary - now django.contrib.admin
enforces not to use capitalization. With this patch django.contrib.admin
don't care what other people choose.
--
Ticket URL: <http://code.djangoproject.com/ticket/5518#comment:5>
Django Code <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
-~----------~----~----~----~------~----~------~--~---