Run pre-commit.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from django.contrib import admin
|
||||
|
||||
from admin_interface.compat import gettext_lazy as _
|
||||
from admin_interface.models import Theme
|
||||
|
||||
from django.contrib import admin
|
||||
|
||||
|
||||
class ThemeAdmin(admin.ModelAdmin):
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from admin_interface.compat import gettext_lazy as _
|
||||
|
||||
from django.apps import AppConfig
|
||||
from django.db.models.signals import post_migrate
|
||||
|
||||
from admin_interface.compat import gettext_lazy as _
|
||||
|
||||
|
||||
class AdminInterfaceConfig(AppConfig):
|
||||
|
||||
|
||||
@@ -2,9 +2,8 @@
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
import colorfield.fields
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
@@ -2,9 +2,8 @@
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
import colorfield.fields
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import colorfield.fields
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import colorfield.fields
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import colorfield.fields
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import colorfield.fields
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
|
||||
@@ -2,11 +2,10 @@
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import colorfield.fields
|
||||
from django.db import migrations
|
||||
from django.db.models import F
|
||||
|
||||
import colorfield.fields
|
||||
|
||||
|
||||
def default_link_selected(apps, schema_editor):
|
||||
Theme = apps.get_model("admin_interface", "Theme")
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from admin_interface.compat import FileExtensionValidator
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
from admin_interface.compat import FileExtensionValidator
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
|
||||
@@ -6,13 +6,13 @@ from django.db import migrations, models
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('admin_interface', '0025_theme_language_chooser_control'),
|
||||
("admin_interface", "0025_theme_language_chooser_control"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='theme',
|
||||
name='list_filter_highlight',
|
||||
field=models.BooleanField(default=True, verbose_name='highlight active'),
|
||||
model_name="theme",
|
||||
name="list_filter_highlight",
|
||||
field=models.BooleanField(default=True, verbose_name="highlight active"),
|
||||
),
|
||||
]
|
||||
|
||||
@@ -6,13 +6,16 @@ from django.db import migrations, models
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('admin_interface', '0026_theme_list_filter_highlight'),
|
||||
("admin_interface", "0026_theme_list_filter_highlight"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='theme',
|
||||
name='list_filter_removal_links',
|
||||
field=models.BooleanField(default=False, verbose_name='quick remove links for active filters at top of sidebar'),
|
||||
model_name="theme",
|
||||
name="list_filter_removal_links",
|
||||
field=models.BooleanField(
|
||||
default=False,
|
||||
verbose_name="quick remove links for active filters at top of sidebar",
|
||||
),
|
||||
),
|
||||
]
|
||||
|
||||
@@ -2,16 +2,15 @@
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from admin_interface.cache import del_cached_active_theme
|
||||
from admin_interface.compat import FileExtensionValidator, force_str, gettext_lazy as _
|
||||
|
||||
from colorfield.fields import ColorField
|
||||
|
||||
from django.db import models
|
||||
from django.db.models.signals import post_delete, post_save, pre_save
|
||||
|
||||
from six import python_2_unicode_compatible
|
||||
|
||||
from admin_interface.cache import del_cached_active_theme
|
||||
from admin_interface.compat import FileExtensionValidator, force_str
|
||||
from admin_interface.compat import gettext_lazy as _
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Theme(models.Model):
|
||||
@@ -341,8 +340,8 @@ class Theme(models.Model):
|
||||
default=True, verbose_name=_("sticky position")
|
||||
)
|
||||
list_filter_removal_links = models.BooleanField(
|
||||
default=False, verbose_name=_(
|
||||
"quick remove links for active filters at top of sidebar")
|
||||
default=False,
|
||||
verbose_name=_("quick remove links for active filters at top of sidebar"),
|
||||
)
|
||||
|
||||
foldable_apps = models.BooleanField(default=True, verbose_name=_("foldable apps"))
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import django
|
||||
import hashlib
|
||||
import re
|
||||
|
||||
import django
|
||||
from django import template
|
||||
from django.conf import settings
|
||||
from django.template.loader import get_template
|
||||
@@ -14,7 +14,6 @@ from admin_interface.compat import NoReverseMatch, reverse
|
||||
from admin_interface.models import Theme
|
||||
from admin_interface.version import __version__
|
||||
|
||||
|
||||
register = template.Library()
|
||||
|
||||
if django.VERSION < (1, 9):
|
||||
|
||||
Reference in New Issue
Block a user