{% extends 'codeless_django/base.html' %} {% block content %}

Codeless Django

{% if apps.items %}
{% csrf_token %}
    {% for key, value in apps.items %} {% with app_name=key models=value.models %}
  • {% csrf_token %}
      {% for k, v in models.items %} {% with model_name=k fields=v.fields meta_options=v.meta_options %}
    • {% include 'codeless_django/fields.html' with fields=fields %}
      {% if meta_options %}
      class Meta:
        {% for mk, mv in meta_options.items %}
      • {{ mk }} = {{ mv }}
      • {% endfor %}
      {% else %}
      {% include 'codeless_django/forms/model_meta_form.html' with model_name=model_name app_name=app_name %}
      {% endif %}
      {% include 'codeless_django/forms/field_form.html' with model_name=model_name app_name=app_name %}
    • {% endwith %} {% endfor %}
  • {% endwith %} {% endfor %}
{% else %}
{% csrf_token %}
{% endif %}
{% endblock content %}