def __eq__(self, other):
        return (isinstance(other, self.__class__) and
                other.package == self.package)
def serializable_fields(self):
        """ in certain cases the user model isn't serializable so you may want to only send the id """
        return self