Permalink
Browse files

Refactored meta.py -- created a django.core.meta package, with init.p…

…y and fields.py

git-svn-id: http://code.djangoproject.com/svn/django/trunk@378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 006e9e7 commit e0c3dd3318f6f4895554521c6bf69676635b1937 @adrianholovaty adrianholovaty committed Aug 1, 2005
@@ -264,7 +264,7 @@ def database_check(mod):
def get_admin_index(mod):
"Returns admin-index template snippet (in list form) for the given module."
- from django.core import meta
+ from django.utils.text import capfirst
output = []
app_label = mod._MODELS[0]._meta.app_label
output.append('{%% if perms.%s %%}' % app_label)
@@ -274,7 +274,7 @@ def get_admin_index(mod):
output.append(MODULE_TEMPLATE % {
'app': app_label,
'mod': klass._meta.module_name,
- 'name': meta.capfirst(klass._meta.verbose_name_plural),
+ 'name': capfirst(klass._meta.verbose_name_plural),
'addperm': klass._meta.get_add_permission(),
'changeperm': klass._meta.get_change_permission(),
})
Oops, something went wrong. Retry.

0 comments on commit e0c3dd3

Please sign in to comment.