magic-removal: Removed _get_packages_insert() from django.core.management

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2464 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-03-02 04:47:06 +00:00
parent 25391d5e98
commit 910986dde2
1 changed files with 7 additions and 13 deletions

View File

@ -26,12 +26,6 @@ PROJECT_TEMPLATE_DIR = os.path.join(django.__path__[0], 'conf', '%s_template')
INVALID_PROJECT_NAMES = ('django', 'test') INVALID_PROJECT_NAMES = ('django', 'test')
def _get_packages_insert(app_label):
from django.db import backend
return "INSERT INTO %s (%s, %s) VALUES ('%s', '%s');" % \
(backend.quote_name('django_package'), backend.quote_name('label'), backend.quote_name('name'),
app_label, app_label)
def _get_permission_codename(action, opts): def _get_permission_codename(action, opts):
return '%s_%s' % (action, opts.object_name.lower()) return '%s_%s' % (action, opts.object_name.lower())