{% extends 'codeless_django/base.html' %} {% block content %}
| {{ app_name|title }} | |||||
|---|---|---|---|---|---|
| class {{model_name}}(models.Model): | |||||
| {{field_name}} | = | {{type}}( | {%for option in options %}{{option.name}}={{option.value}}, | {%endfor%}) | |
| {% include 'codeless_django/forms/field_form.html' with model_name=model_name app_name=app_name %} | |||||
| {% include 'codeless_django/forms/model_meta_form.html' with model_name=model_name app_name=app_name %} | |||||