<s> from __future__ import unicode_literals <EOL> import warnings <EOL> import django <EOL> from django . db import models <EOL> class FilteredQuerysetManager ( models . Manager ) : <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> self . args = args <EOL> self . kwargs = kwargs <EOL> super ( FilteredQuerysetManager , self ) . __init__ ( ) <EOL> def get_queryset ( self ) : <EOL> qs = super ( FilteredQuerysetManager , self ) . get_queryset ( ) <EOL> return qs . filter ( * self . args , ** self . kwargs ) <EOL> if django . VERSION < ( <NUM_LIT:1> , <NUM_LIT:8> ) : <EOL> def get_query_set ( self ) : <EOL> warnings . warn ( <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" , <EOL> DeprecationWarning if django . VERSION >= ( <NUM_LIT:1> , <NUM_LIT:7> ) <EOL> else PendingDeprecationWarning , <EOL> stacklevel = <NUM_LIT:2> <EOL> ) <EOL> return FilteredQuerysetManager . get_queryset ( self ) </s>
