Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: show relations of nested places in Place detail page #190

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gythaogg
Copy link
Collaborator

This pull request introduces several changes to the apis_ontology module, primarily focusing on adding new columns and templates for handling place relations, as well as extending existing templates and tags to support nested relations.

Key changes include:

New Columns and Templates:

  • Added RelationSubjectColumn class to apis_ontology/tables.py for displaying subjects in the relations table.
  • Created new template relation_subject.html to render subject links in the relations table.

New Table Class:

  • Introduced PlaceRelationsTable class in apis_ontology/tables.py to handle place-specific relations with a defined field order.

Template Modifications:

  • Updated place_detail.html and place_form.html to include the new place_list_relations_include_tabs.html template instead of the generic list_relations_include_tabs.html. [1] [2]
  • Added place_list_relations_include_tabs.html template to extend the base relations template and load nested relations.

New Template Tag:

  • Added relations_from_place template tag in nested_relations.py to fetch relations, including nested locations within a place.

closes #49

@gythaogg gythaogg force-pushed the feat/49-place-within-place branch from 0b6eadf to 119be08 Compare November 28, 2024 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Place: include relations for related entities
1 participant