Explorar o código

Fix linting issues

Thibaud Colas hai 3 meses
pai
achega
e6d0fc1f03
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      bakerydemo/breads/wagtail_hooks.py

+ 2 - 2
bakerydemo/breads/wagtail_hooks.py

@@ -18,7 +18,7 @@ class BreadIngredientFilterSet(RevisionFilterSetMixin, WagtailFilterSet):
 
 class BreadIngredientSnippetViewSet(SnippetViewSet):
     model = BreadIngredient
-    ordering = ("name")
+    ordering = "name"
     search_fields = ("name",)
     filterset_class = BreadIngredientFilterSet
     inspect_view_enabled = True
@@ -39,7 +39,7 @@ class BreadTypeSnippetViewSet(SnippetViewSet):
 
 class CountryModelViewSet(ModelViewSet):
     model = Country
-    ordering = ("title")
+    ordering = "title"
     search_fields = ("title",)
     icon = "globe"
     inspect_view_enabled = True