{% extends 'base.html' %} {% load bootstrap4 %} {% block content %} {% load widget_tweaks %} {% load base_extras %}

{% if not request.session.root %} Which table do you want to populate? {% else %} Populating {{request.session.root}} {% endif %}

This page helps you to generate a python population script for a given database table.

Info
  • This page will recursively query you which object you want to create.
  • If you already know how to create a certain object, (e.g. by a database query) you can tell the webpage to ignore dependencies.
{% if form.model.field.choices %} {% if request.session.tree %} {% for key, val in request.session.tree.items %} {% endfor %}
Dependency Type Help
{{key}} {% if val.doc_url %}{{val.label}}{% else %}{{val.label}}{% endif %} {{ request.session.help|get_item:key|safe}}
{% endif %}
{% csrf_token %} {{ form.errors }}
{{ form.model | add_class:"custom-select"}}
{{ form.parse_tree | add_class:"form-check-input"}}
{% if form.model.help_text %}
Help: {{form.model.help_text|safe}}
{% endif %}
{% else %}

It seems like you have no models yet...

Create and migrate tables first

{% endif %}
{% if request.session.root %} {% endif %} {% endblock %}