Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

has_add_permission() takes 2 positional arguments but 3 were given

#change:
def has_add_permission(self, request):
    return False
#to:

def has_add_permission(self, request, obj=None):
    return False
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #takes #positional #arguments
ADD COMMENT
Topic
Name
1+2 =