Skip to content

Plugin / rest routing url / PicklingError -> Cache issue #3948

Closed Answered by Bbillyben
Bbillyben asked this question in Q&A
Discussion options

You must be logged in to vote

I'm back with an ugly solution...........

Firstly : Observations

I went to a standard django.views.View, for my SMPTrackViewSet view class and route by linking .as_view() :

        SMP_URL=[
            path('track/', SMPviews.SMPTrackViewSet.as_view(), name='track-list'),
            path('track/location/<loc>/', SMPviews.SMPTrackViewSet.as_view(), name='track-location'),      
        ]

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 :

SMP_URL=[
            path('track/', SMPviews.get_SMP_list, name='track-list'),
       …

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@Bbillyben
Comment options

@matmair
Comment options

@Bbillyben
Comment options

Comment options

You must be logged in to vote
5 replies
@matmair
Comment options

@Bbillyben
Comment options

@matmair
Comment options

@Bbillyben
Comment options

@matmair
Comment options

Answer selected by Bbillyben
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants