diff --git a/InvenTree/plugin/api.py b/InvenTree/plugin/api.py index 353683214d..cac151db23 100644 --- a/InvenTree/plugin/api.py +++ b/InvenTree/plugin/api.py @@ -6,7 +6,6 @@ JSON API for the plugin app from __future__ import unicode_literals from django.conf.urls import url, include -from django.utils.translation import ugettext_lazy as _ from rest_framework import generics from rest_framework import status diff --git a/InvenTree/plugin/models.py b/InvenTree/plugin/models.py index adccf119fe..ab53ed52d8 100644 --- a/InvenTree/plugin/models.py +++ b/InvenTree/plugin/models.py @@ -71,9 +71,11 @@ class PluginConfig(models.Model): return str(getattr(self.plugin, name, None)) return None - self.meta = {key: get_plugin_meta(key) for key in ['slug', 'human_name', 'description', 'author', \ - 'pub_date', 'version', 'website', 'license', 'package_path', 'settings_url', ]} - + self.meta = { + key: get_plugin_meta(key) for key in ['slug', 'human_name', 'description', 'author', + 'pub_date', 'version', 'website', 'license', + 'package_path', 'settings_url', ] + } def save(self, force_insert=False, force_update=False, *args, **kwargs): """extend save method to reload plugins if the 'active' status changes""" diff --git a/tasks.py b/tasks.py index 57b0e41ad9..b33af84384 100644 --- a/tasks.py +++ b/tasks.py @@ -133,6 +133,7 @@ def rebuild_models(c): manage(c, "rebuild_models", pty=True) + @task def rebuild_thumbnails(c): """ @@ -141,6 +142,7 @@ def rebuild_thumbnails(c): manage(c, "rebuild_thumbnails", pty=True) + @task def clean_settings(c): """