style: 🎨 format code to be compliant

This commit is contained in:
m5ka 2024-03-30 10:42:19 +00:00
parent 7814dd3705
commit ffd9bcc001
3 changed files with 6 additions and 3 deletions

View file

@ -246,6 +246,6 @@ EMOJI_CATEGORIES = [
"🪰",
),
),
(_("tools & things"), ("🥄", "🍴", "🍽️", "🥣", "🥡", "🥢", "🧂", "🔪", "🪓", "🫙",)),
(_("tools & things"), ("🥄", "🍴", "🍽️", "🥣", "🥡", "🥢", "🧂", "🔪", "🪓", "🫙")),
]
"""Defines emoji that are available in the emoji picker widget."""

View file

@ -29,7 +29,9 @@ class Recipe(models.Model):
title = models.CharField(
verbose_name=_("recipe title"),
max_length=64,
help_text=_("give the recipe a title, just so you know what the recipe is for."),
help_text=_(
"give the recipe a title, just so you know what the recipe is for."
),
)
created_by = models.ForeignKey(
"User",

View file

@ -36,7 +36,8 @@ class DeletePostView(LoginRequiredMixin, UserPassesTestMixin, FormView):
def get_context_data(self, **kwargs):
return {
**super().get_context_data(**kwargs),
"item": _("%(post_text)s from %(time_ago)s") % {
"item": _("%(post_text)s from %(time_ago)s")
% {
"post_text": self.post_object.plain_text,
"time_ago": naturaltime(self.post_object.created_at),
},