def __init__(self): # Default variables that are only used in this class self.search_terms = [] # Empy by default (empty = don't search) self.search_tags = [] # Only use cards with these tags (empty = ignore) self.sentence_field = {} # Dictionary containing which field to # use as the sentence. Only fields in # models in the dictionary will be used. # In the form { modelname: fieldname } self.tag_strip = [ # Tags to strip from tags obtained from cards. 'Media-Missing', # Remove anki specific tags that we don't want on the site. 'Leech', 'Extr', ] # Call the usual __init__ function Upload.__init__(self)