Skip to content

Commit

Permalink
Remove serach by primary key since Django's ORM handles this for us.
Browse files Browse the repository at this point in the history
  • Loading branch information
Renato committed Dec 10, 2017
1 parent 49fca4a commit 0a046a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notto/nottoapp/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ def get_parent(self):
Get parent note
'''
if self.url_title is not None and self.parent_note is not None:
return Note.objects.get(pk=self.parent_note.id)
return self.parent_note

0 comments on commit 0a046a1

Please sign in to comment.