标签: django django-models
我想实现这个:
class Job(models.Model): owner = models.ForeignKey(User) ... @property def mine(self): return owner == request.user
如何从模型中访问请求?