Add relationship detection and display support#63
Open
glennswest wants to merge 1 commit intobenavlabs:mainfrom
Open
Add relationship detection and display support#63glennswest wants to merge 1 commit intobenavlabs:mainfrom
glennswest wants to merge 1 commit intobenavlabs:mainfrom
Conversation
Features: - New relationships.py module for detecting SQLAlchemy relationships - Support for BelongsTo, HasOne, HasMany, and ManyToMany relationships - Auto-detect display fields for related models (name, title, etc.) - Load and display related data in model views - New templates for related data display (related_link, related_single, related_table) - Updated create/update forms to show relationship context - Updated list view to show relationship summaries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
relationships.pymodule that detects BelongsTo, HasOne, HasMany, and ManyToMany relationshipsChanges
admin_interface/relationships.py- Core relationship detection logicrelated_link.html- Link to related modelrelated_single.html- Display single related recordrelated_table.html- Display multiple related recordsadmin_site.py,model_view.py- Integration with relationship detectioncreate.html,update.html,list_content.html- Display related dataFeatures
Test plan