-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(utils): use contenttype instead of model name for helper
The `get_classes_with_allowed_relation_from` method created a list of possible related models based on the name of one model. It then returned the names of those models as strings. It makes more sense to simply use contenttypes instead of model names, especially since the Property model stores the possible subj and obj classes as ContentTypes. This commit refactors the method and also updates `triple_sidebar` which is the only funciton that uses the `get_classes_with_allowed_relation_from` method. Closes: #254
- Loading branch information
Showing
2 changed files
with
21 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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