Dodata opcija da yaml template da moze da koristi html i django template
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import yaml
|
||||
from django.core.management.base import BaseCommand
|
||||
from django.template import Template, Context
|
||||
from backend.core.models import DocumentTemplate
|
||||
|
||||
class Command(BaseCommand):
|
||||
@@ -13,7 +14,6 @@ class Command(BaseCommand):
|
||||
|
||||
with open(yaml_file_path, 'r') as file:
|
||||
content = file.read()
|
||||
yaml_data = yaml.safe_load(content)
|
||||
|
||||
DocumentTemplate.objects.update_or_create(
|
||||
name="Default Template",
|
||||
|
||||
Reference in New Issue
Block a user