def __repr__(self):
        return "<NamedRequirements({}{})>".format(
            self.name,
            ", filename='{}'".format(self.filename.name) if self.filename
            else "")
def serializable_fields(self):
        """ in certain cases the user model isn't serializable so you may want to only send the id """
        return self