Skip to content

Commit

Permalink
Revert "Add basic support for proxy models"
Browse files Browse the repository at this point in the history
This reverts commit 323b002.
  • Loading branch information
matthiask committed Dec 10, 2023
1 parent 323b002 commit 9d3c23a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 58 deletions.
53 changes: 0 additions & 53 deletions feincms3/proxies.py

This file was deleted.

6 changes: 1 addition & 5 deletions feincms3/renderer.py
Expand Up @@ -267,11 +267,7 @@ def regions_from_item(self, item, /, *, inherit_from=None, timeout=None, **kwarg
kwargs["cache_key"] = f"regions-{item._meta.label_lower}-{item.pk}"

contents = SimpleLazyObject(
lambda: contents_for_item(
item,
{plugin._meta.proxy_for_model or plugin for plugin in self.plugins()},
inherit_from=inherit_from,
)
lambda: contents_for_item(item, self.plugins(), inherit_from=inherit_from)
)
return self.regions_from_contents(contents, timeout=timeout, **kwargs)

Expand Down

0 comments on commit 9d3c23a

Please sign in to comment.