Skip to content

Commit

Permalink
Adds related_name to user in LogEntry class #226
Browse files Browse the repository at this point in the history
  • Loading branch information
meatballs committed Feb 12, 2014
1 parent 88db672 commit 4a898c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo4django/admin/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class LogEntry(models.NodeModel):
action_flag = models.IntegerProperty() # _('action flag')
action_time = models.DateTimeProperty(auto_now=True) # _('action time'),
# TODO django 1.5 support (user models, #143)
user = models.Relationship(User, rel_type='completed_by', single=True)
user = models.Relationship(User, rel_type='completed_by',related_name='completed_by', single=True)
content_type = models.Relationship(ContentType, single=True, rel_type='content_type')
object_id = models.StringProperty() # _('object id')
object_repr = models.StringProperty(max_length=200) # _('object repr'),
Expand Down

0 comments on commit 4a898c1

Please sign in to comment.