'Ensure that all attributes are initialised when unpickling CourseMasquerade objects.
Users might still have CourseMasquerade objects from older versions of the code in their
session.  These old objects might not have all attributes set, possibly resulting in
AttributeErrors.'

def __setstate__(self, state):

    self.__init__(**state)
