mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-04-30 19:44:46 +00:00
Rename constants module to settings
This commit is contained in:
parent
d140086dd1
commit
cc6e8467c4
3 changed files with 4 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ from django.db.models import get_models, signals
|
|||
import extra_views
|
||||
|
||||
from . import apiviews
|
||||
from . import constants
|
||||
from . import settings
|
||||
from . import views
|
||||
from . import actions
|
||||
from . import utils
|
||||
|
|
@ -36,7 +36,7 @@ class ModelAdmin2(object):
|
|||
save_on_top = False
|
||||
verbose_name = None
|
||||
verbose_name_plural = None
|
||||
model_admin_attributes = constants.MODEL_ADMIN_ATTRS
|
||||
model_admin_attributes = settings.MODEL_ADMIN_ATTRS
|
||||
|
||||
search_fields = []
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ from django.forms.models import modelform_factory
|
|||
from django.http import HttpResponseRedirect
|
||||
from braces.views import AccessMixin
|
||||
|
||||
from . import constants, permissions
|
||||
from . import settings, permissions
|
||||
from .utils import admin2_urlname, model_options
|
||||
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ class Admin2Mixin(PermissionMixin):
|
|||
index_path = reverse_lazy('admin2:dashboard')
|
||||
|
||||
def get_template_names(self):
|
||||
return [os.path.join(constants.ADMIN2_THEME_DIRECTORY, self.default_template_name)]
|
||||
return [os.path.join(settings.ADMIN2_THEME_DIRECTORY, self.default_template_name)]
|
||||
|
||||
def get_model(self):
|
||||
return self.model
|
||||
|
|
|
|||
Loading…
Reference in a new issue