-
Hi, I'm developping my 1st plugin UrlsMixin is dedicated here to some rest call to manage bootstrap table datas, the urls are defines as:
the setting is pretty simple :
The panel is added in StockLocation tab to display StokItemTrackin :
the viewset inherit from Every thing works fine in StockItem panel, But I've got an error in Setting Panel : It's linked to URL routes added and the cache system. 1/ If I route to a direct function rather than the viewset, Setting panel load fine
Setting panel load fine again. I've read from gg that it could be due to some import sequence issues, that's why I've split my code in 2 files, but no effect. => Have you got any clue to help on that issue? Versions : |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
@Bbillyben can be connected to a bunch of things. I would suggest trying the following things:
I am not really sure what you mean by `Setting panel? - could be the time of night here in Europe. |
Beta Was this translation helpful? Give feedback.
-
I'm back with an ugly solution........... Firstly : ObservationsI went to a standard
The overall process works fine, but I've got the same error in the 'Setting page' (inventreeURL/settings/) So I test to code as basic as I can and code 'function based view', to route as :
I can navigate to /settings/ without any issues but when i'm trying to access urls, I've got the error :
error trace :FunctionViewError.txt SolutionSet up a standard Add a specific get_smth function to call the get, instanciating the class, eg:
and route by :
That's Capillotracted !!!! Some few test, and I will try to add the plugin in a prod environment! |
Beta Was this translation helpful? Give feedback.
I'm back with an ugly solution...........
Firstly : Observations
I went to a standard
django.views.View
, for mySMPTrackViewSet
view class and route by linking .as_view() :The overall process works fine, but I've got the same error in the 'Setting page' (inventreeURL/settings/)
error trace : ViewError.txt
So I test to code as basic as I can and code 'function based view', to route as :