style: 🎨 format code to be compliant
This commit is contained in:
parent
7814dd3705
commit
ffd9bcc001
3 changed files with 6 additions and 3 deletions
|
|
@ -246,6 +246,6 @@ EMOJI_CATEGORIES = [
|
||||||
"🪰",
|
"🪰",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
(_("tools & things"), ("🥄", "🍴", "🍽️", "🥣", "🥡", "🥢", "🧂", "🔪", "🪓", "🫙",)),
|
(_("tools & things"), ("🥄", "🍴", "🍽️", "🥣", "🥡", "🥢", "🧂", "🔪", "🪓", "🫙")),
|
||||||
]
|
]
|
||||||
"""Defines emoji that are available in the emoji picker widget."""
|
"""Defines emoji that are available in the emoji picker widget."""
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,9 @@ class Recipe(models.Model):
|
||||||
title = models.CharField(
|
title = models.CharField(
|
||||||
verbose_name=_("recipe title"),
|
verbose_name=_("recipe title"),
|
||||||
max_length=64,
|
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(
|
created_by = models.ForeignKey(
|
||||||
"User",
|
"User",
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,8 @@ class DeletePostView(LoginRequiredMixin, UserPassesTestMixin, FormView):
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
return {
|
return {
|
||||||
**super().get_context_data(**kwargs),
|
**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,
|
"post_text": self.post_object.plain_text,
|
||||||
"time_ago": naturaltime(self.post_object.created_at),
|
"time_ago": naturaltime(self.post_object.created_at),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue