(cls, **kwargs)
Raise our exception when model not found.
Raise our exception when model not found.
Raise our exception when model not found .
def get(cls, **kwargs):
        """Raise our exception when model not found."""
        try:
            return super(BaseModel, cls).get(**kwargs)
        except DoesNotExist as exc:
            raise NotFound(exc)
        except:
            raise
def get ( cls , * * kwargs ) : try : return super ( BaseModel , cls ) . get ( * * kwargs ) except DoesNotExist as exc : raise NotFound ( exc ) except : raise