super basic templating working

This commit is contained in:
vabene1111
2021-01-05 21:46:24 +01:00
parent f26b09cc0a
commit ee707eba5c
4 changed files with 26 additions and 2 deletions

View File

@ -180,6 +180,10 @@ class Step(models.Model):
order = models.IntegerField(default=0)
show_as_header = models.BooleanField(default=True)
def get_instruction_render(self):
from cookbook.helper.template_helper import render_instructions
return render_instructions(self)
class Meta:
ordering = ['order', 'pk']