Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nvbn committed Nov 5, 2013
2 parents 22f24d6 + c563662 commit a831284
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions everpad/provider/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ class Note(Base):
action = Column(Integer)
conflict_parent = relationship("Note", post_update=False)
conflict_parent_id = Column(
Integer, ForeignKey('notes.conflict_parent_id'),
nullable=True,
Integer, ForeignKey('notes.id'), nullable=True,
)

# sharing data:
Expand Down Expand Up @@ -108,7 +107,7 @@ def place_dbus(self, val):

@property
def conflict_parent_dbus(self):
if self.conflict_parent:
if self.conflict_parent_id:
return self.conflict_parent_id
return 0

Expand Down

0 comments on commit a831284

Please sign in to comment.