From 4c582c14b56a2d46b0dea38f0e1922be08e59376 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 22 Dec 2014 14:29:30 +0000 Subject: [PATCH] better related name --- pandora/annotation/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/annotation/models.py b/pandora/annotation/models.py index c42185ad..f2277246 100644 --- a/pandora/annotation/models.py +++ b/pandora/annotation/models.py @@ -87,7 +87,7 @@ class Annotation(models.Model): #FIXME: here having a item,start index would be good created = models.DateTimeField(auto_now_add=True) modified = models.DateTimeField(auto_now=True) - user = models.ForeignKey(User) + user = models.ForeignKey(User, related_name='annotations') item = models.ForeignKey('item.Item', related_name='annotations') clip = models.ForeignKey('clip.Clip', null=True, related_name='annotations')