#NEWLINE# def get_objects( self ) : #NEWLINE# #INDENT# ' Returns a set of objects set for deletion. List of objects is\n        retrived from a HTTP POST list called ``objects``.\n\n        Returns\n        -------\n        set\n            Set of objects to delete\n        ' #NEWLINE# try : #NEWLINE# #INDENT# return self . _objs #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# objects = set ( ) #NEWLINE# model = self . get_model ( ) #NEWLINE# vals = request . values . getlist ( 'objects' ) #NEWLINE# try : #NEWLINE# #INDENT# field = getattr ( model , self . get_lookup_field ( ) ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# raise AttributeError ( 'Lookup field does not exist' ) #NEWLINE# #UNINDENT# for obj in model . query . filter ( field . in_ ( vals ) ) . all ( ) : #NEWLINE# #INDENT# objects . add ( obj ) #NEWLINE# #UNINDENT# self . _objs = objects #NEWLINE# return objects