Skip to content

Commit

Permalink
Fix plan creation
Browse files Browse the repository at this point in the history
  • Loading branch information
janbaykara committed Nov 24, 2023
1 parent 75b63f1 commit d778aad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/wagtail.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def url(self, country_id=None):


def create_default_layout_syllabus():
return {"id": uuid.uuid4(), "type": "syllabus_title", "value": {}}
return (("syllabus_title", {}),)


@register_snippet
Expand Down Expand Up @@ -861,8 +861,8 @@ def metafields_array_to_list(arg):

def create_default_layout_plan():
return (
{"id": uuid.uuid4(), "type": "plan_title", "value": {}},
{"id": uuid.uuid4(), "type": "plan_pricing", "value": {}},
("plan_title", {}),
("plan_pricing", {}),
)


Expand Down

0 comments on commit d778aad

Please sign in to comment.