-
Notifications
You must be signed in to change notification settings - Fork 329
Description
What version of Unfold are you using?
v0.50.0
What version of Django are you using?
Chrome 133.0.6943.142 (Official Build) (64-bit)
What browser are you using?
For example: Firefox 128.0
Did you checked changelog/commit history, if the bug is not already fixed?
Yes
Did you searched other issues, if the bug is not already fixed?
Yes
Did you checked documentation?
Yes
Are you able to replicate the bug in the demo site?
Yes
Repository with reproduced bug
https://github.com/dickermoshe/repro_unfold
Describe your issue
I'm using reactpy_django and it's seems that it replaces the unfold site with the default site when it's setup.
The result is an empty admin site that has no models registered.
The sequence of events are as follows:
- Unfold replaces admin site
- Models are registered on the Unfold site
- calling
reverseintemplatetagsreverts back the original site - This is becuase reverse calls
resolver.app_dictwhich forces the resolver to_populate(). This completly recomputes the entire urlresolver
I traced the issue to using reverse function in templatetags. The repo above contains a self contained reproduction of this issue without reactpy_django.