Skip to content
Snippets Groups Projects
Verified Commit 4f7a4958 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix lint and reformat

parent c0625b68
No related branches found
No related tags found
1 merge request!133Update tox.ini
Pipeline #157258 passed with warnings
......@@ -12,9 +12,7 @@ class FAQForm(forms.Form):
question = forms.CharField(widget=forms.Textarea(), label=_("Your question"), required=True)
FAQOrderFormSet = forms.modelformset_factory(
FAQSection, can_order=True, extra=0, fields="__all__"
) # noqa
FAQOrderFormSet = forms.modelformset_factory(FAQSection, can_order=True, extra=0, fields="__all__") # noqa
FAQOrderFormSet.ordering_widget = forms.widgets.HiddenInput
......
......@@ -136,7 +136,7 @@ class IssueCategory(ExtensibleModel):
def save(self, *args, **kwargs):
if self.free_text and self.children.exists():
IssueCategory.objects.filter(parent=self).delete()
super(IssueCategory, self).save(*args, **kwargs)
super().save(*args, **kwargs)
def get_absolute_url(self):
return reverse("admin:hjelp_issuecategory_change", args=[self.id])
......@@ -21,14 +21,20 @@ span.chip {
}
.card-panel {
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
box-shadow:
0 2px 2px 0 rgba(0, 0, 0, 0.14),
0 3px 1px -2px rgba(0, 0, 0, 0.12),
0 1px 5px 0 rgba(0, 0, 0, 0.2);
-webkit-box-shadow:
0 2px 2px 0 rgba(0, 0, 0, 0.14),
0 3px 1px -2px rgba(0, 0, 0, 0.12),
0 1px 5px 0 rgba(0, 0, 0, 0.2);
-webkit-transition: -webkit-box-shadow 0.25s;
transition: -webkit-box-shadow 0.25s;
transition: box-shadow 0.25s;
transition: box-shadow 0.25s, -webkit-box-shadow 0.25s;
transition:
box-shadow 0.25s,
-webkit-box-shadow 0.25s;
padding: 24px;
margin: 0.5rem 0 1rem 0;
border-radius: 2px;
......
......@@ -288,7 +288,7 @@ def feedback(request):
apps = form.cleaned_data["apps"]
# Register activity
act = Activity.objects.create(
Activity.objects.create(
title=_("You submitted feedback."),
description=_(f"You rated AlekSIS with {overall_rating} out of 5 stars."),
app="Feedback",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment