Remove unnecessary object derive

This commit is contained in:
johnthagen 2020-05-13 16:26:34 -04:00 committed by GitHub
parent bc2d8919f0
commit 083edb2918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -319,7 +319,7 @@ Often you'll want to use the existing generic views, but use some slightly custo
For example, if you need to lookup objects based on multiple fields in the URL conf, you could create a mixin class like the following: For example, if you need to lookup objects based on multiple fields in the URL conf, you could create a mixin class like the following:
class MultipleFieldLookupMixin(object): class MultipleFieldLookupMixin:
""" """
Apply this mixin to any view or viewset to get multiple field filtering Apply this mixin to any view or viewset to get multiple field filtering
based on a `lookup_fields` attribute, instead of the default single field filtering. based on a `lookup_fields` attribute, instead of the default single field filtering.