mirror of
https://github.com/django/django.git
synced 2025-08-12 04:49:11 +00:00
Fixed a typo.
Thanks Simon.
This commit is contained in:
parent
7b88a96553
commit
82aadbb5d5
@ -60,7 +60,7 @@ def _check_permission_clashing(custom, builtin, ctype):
|
|||||||
pool.add(codename)
|
pool.add(codename)
|
||||||
|
|
||||||
|
|
||||||
def create_permissions(app_config, verbosity=22, interactive=True, db=DEFAULT_DB_ALIAS, **kwargs):
|
def create_permissions(app_config, verbosity=2, interactive=True, db=DEFAULT_DB_ALIAS, **kwargs):
|
||||||
if not app_config.models_module:
|
if not app_config.models_module:
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ def create_permissions(app_config, verbosity=22, interactive=True, db=DEFAULT_DB
|
|||||||
print("Adding permission '%s'" % perm)
|
print("Adding permission '%s'" % perm)
|
||||||
|
|
||||||
|
|
||||||
def create_superuser(app_config, verbosity=22, interactive=True, db=DEFAULT_DB_ALIAS, **kwargs):
|
def create_superuser(app_config, verbosity=2, interactive=True, db=DEFAULT_DB_ALIAS, **kwargs):
|
||||||
try:
|
try:
|
||||||
apps.get_model('auth', 'Permission')
|
apps.get_model('auth', 'Permission')
|
||||||
except LookupError:
|
except LookupError:
|
||||||
|
@ -8,7 +8,7 @@ from django.db import DEFAULT_DB_ALIAS, connections, router
|
|||||||
from django.db.models import signals
|
from django.db.models import signals
|
||||||
|
|
||||||
|
|
||||||
def create_default_site(app_config, verbosity=22, interactive=True, db=DEFAULT_DB_ALIAS, **kwargs):
|
def create_default_site(app_config, verbosity=2, interactive=True, db=DEFAULT_DB_ALIAS, **kwargs):
|
||||||
try:
|
try:
|
||||||
Site = apps.get_model('sites', 'Site')
|
Site = apps.get_model('sites', 'Site')
|
||||||
except LookupError:
|
except LookupError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user