pinax-models
pinax-models copied to clipboard
Fix RemovedInDjango18Warning
RemovedInDjango18Warning:
LogicalDeleteModelAdmin.querysetmethod should be renamed
get_queryset.
@naringas instead of renaming the function why not adding it as a new function to keep backward compatibility??
If i am not mistaken if you rename this you will be breaking previous django versions
get_queryset
is supported from django 1.6 (so this change will break django 1.5), however not having this change will break django 1.8
so, add this @psychok7?
def queryset(self, request):
return self.get_queryset(self, request)
breaking 1.5 is fine I think
@naringas exactly.