changed emoji widget

This commit is contained in:
vabene1111
2019-12-24 11:37:53 +01:00
parent efabed8b2a
commit 417e372c42
6 changed files with 10 additions and 12 deletions

View File

@ -232,6 +232,11 @@ class RecipeDelete(LoginRequiredMixin, DeleteView):
model = Recipe
success_url = reverse_lazy('index')
def form_valid(self, form):
self.object = form.save(commit=False)
return super(RecipeDelete, self).form_valid(form)
def get_context_data(self, **kwargs):
context = super(RecipeDelete, self).get_context_data(**kwargs)
context['title'] = _("Recipe")