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

{% 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.
  • It is not supported to go backwards — you have to start over if you want to change entries.
{% if form.model.field.choices %} {% if request.session.tree %} {% for key, val in request.session.tree.items %} {% endfor %}
Dependency Type
{{key}} {{val}}
{% endif %}
{% csrf_token %} {{ form.errors }}
{{ form.model | add_class:"custom-select"}}
{{ form.parse_tree | add_class:"form-check-input"}}
{% else %}

It seems like you have no models yet...

Create and migrate tables first

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