<s> from django . db import models as django_models <EOL> class BackupManager ( django_models . Manager ) : <EOL> def get_queryset ( self ) : <EOL> return super ( BackupManager , self ) . get_queryset ( ) . exclude ( state = self . model . States . DELETED ) <EOL> def get_active ( self ) : <EOL> return super ( BackupManager , self ) . get_queryset ( ) . exclude ( <EOL> state__in = ( self . model . States . DELETING , self . model . States . DELETED , self . model . States . ERRED ) ) <EOL> def get_deleted ( self ) : <EOL> return super ( BackupManager , self ) . get_queryset ( ) </s>
