Skip to content

Reduce dependency on Klass instance in KlassDetailView #279

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

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

meshy
Copy link
Contributor

@meshy meshy commented May 2, 2025

This is a step on the road of removing the ORM from the template render.

meshy added 7 commits May 2, 2025 17:22
This is a step on the road of removing the ORM from the template render.
We had a filter that did a complex query at template render time. That
logic has now been moved to the view. Flat objects are introduced to
passed method to the template instead.

The helper function is horrible. We should also improve the method
context data structure, but that would require more work on the
template, so it's out of scope.

Similarly, this makes no effort to add types to the helper function
which was previously a template filter.
This adds a `klass` argument, and renames a couple of attributes.
Other than that, this is just a move.

This function is gnarly. Fixing it can come later.
There's no need for us to re-define this on every iteration.
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.

1 participant