Couple of fixes
This commit is contained in:
parent
72bad08a61
commit
6e77474d15
@ -338,8 +338,7 @@ class WorkUpdateView(CollectionMixin, UpdateView):
|
|||||||
def form_valid(self, form):
|
def form_valid(self, form):
|
||||||
response = super().form_valid(form)
|
response = super().form_valid(form)
|
||||||
|
|
||||||
ix = indexer.get_index()
|
index_works([self.object])
|
||||||
indexer.index_works(ix, [self.object])
|
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|||||||
@ -33,14 +33,14 @@ poly-tool = "polyphonic.manage:main"
|
|||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
extend-exclude = ["**/migrations/"]
|
extend-exclude = ["**/migrations/"]
|
||||||
extend-select = [
|
lint.extend-select = [
|
||||||
"DJ", # flake8-django: Django-specific bugs
|
#"DJ", # flake8-django: Django-specific bugs
|
||||||
"E", # pycodestyle errors
|
#"E", # pycodestyle errors
|
||||||
"F", # Pyflakes
|
"F", # Pyflakes
|
||||||
"W", # pycodestyle warnings
|
#"W", # pycodestyle warnings
|
||||||
"I", # isort
|
#"I", # isort
|
||||||
"UP", # pyupgrade
|
#"UP", # pyupgrade
|
||||||
"B", # flake8-bugbear
|
#"B", # flake8-bugbear
|
||||||
]
|
]
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user