Skip to content

Commit

Permalink
fix: correct inverse property name to reverse_name
Browse files Browse the repository at this point in the history
this makes it consistent with the assumptiopn in models.py
that the inverse is saved under the attribute reverse_name

TODO: like subj_model and obj_model, can we mandate these fields in the
base class to avoid confusion?
  • Loading branch information
gythaogg committed Jan 19, 2024
1 parent 368577f commit b0912ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<button type="button" class="btn btn-sm">

{% if rel in relation_types_reverse %}
{{ model.name_reverse }}
{{ model.reverse_name }}
{% else %}
{{ model.name }}
{% endif %}
Expand Down

0 comments on commit b0912ec

Please sign in to comment.