'Override to auto-detect object type and set default user if unset'

def save(self, *args, **kwargs):

    try:
        name = self.__unicode__()
        if (not (name == self.object_name)):
            self.object_name = name[0:510]
    except:
        pass
    types = re.findall("'(.+)'", str(self.__class__))
    if types:
        self.object_type = types[0]
    return super(Object, self).save(*args, **kwargs)
