improved deletion of recipes

This commit is contained in:
vabene1111
2021-11-04 12:27:21 +01:00
parent 980dc48eb8
commit 1fad1d2b8f
3 changed files with 62 additions and 28 deletions

View File

@@ -458,6 +458,9 @@ class Step(ExportModelOperationsMixin('step'), models.Model, PermissionModelMixi
from cookbook.helper.template_helper import render_instructions
return render_instructions(self)
def __str__(self):
return f'{self.pk} {self.name}'
class Meta:
ordering = ['order', 'pk']
indexes = (GinIndex(fields=["search_vector"]),)