You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(The goal being to check the "owner" of the object (assessor) is listing/creating child objects.
view.get_object() is throwing an error that I haven't supplied a pk
(AssertionError: Expected view AssessmentListView to be called with a URL keyword argument named "pk". Fix your URL conf, or set the .lookup_field attribute on the view correctly.)
Which is correct as this is a list view not a detail view.
(I'm using generics hence the use of `method:get' rather that 'list')
The text was updated successfully, but these errors were encountered:
I have a policy that controls who can create of list objects
Where
user_is_assessor
is(The goal being to check the "owner" of the object (assessor) is listing/creating child objects.
view.get_object()
is throwing an error that I haven't supplied a pk(
AssertionError: Expected view AssessmentListView to be called with a URL keyword argument named "pk". Fix your URL conf, or set the
.lookup_fieldattribute on the view correctly.
)Which is correct as this is a list view not a detail view.
(I'm using generics hence the use of `method:get' rather that 'list')
The text was updated successfully, but these errors were encountered: