wip reciprocal relation names

This commit is contained in:
2021-02-07 21:50:23 +01:00
parent efbfecc335
commit cd82d5465a
6 changed files with 23 additions and 4 deletions
+1 -1
View File
@@ -45,7 +45,7 @@
<ul>
{% for rel in model.relations %}
<li>
<span title="{{rel.model.id}}">"{{rel.model.name}}", pointing to: <i>{{rel.related_name}}</i></span>
<span title="{{rel.model.id}}">"{{rel.model.name}}", pointing to: <i>{{rel.related_name}}</i> (reciprocal as "{{rel.model.reciprocal_name}}")</span>
{%- if rel.model.optional %}, OPTIONAL{% endif %}
{%- if rel.model.multiple %}, MULTIPLE{% endif %}
<br>
@@ -20,6 +20,9 @@ Define relation
<label for="name">Name:</label>
<input type="text" id="name" name="name"><br>
<label for="reciprocal_name">Reciprocal name:</label>
<input type="text" id="reciprocal_name" name="reciprocal_name"><br>
<label for="optional">Optional:</label>
<input type="checkbox" name="optional" id="optional" value="1">
<br>