Skip to content

Commit

Permalink
Working on...
Browse files Browse the repository at this point in the history
  • Loading branch information
n.lyubchich committed Jul 23, 2015
1 parent 03c0156 commit b0c6b67
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion project/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,17 @@ def soft_delete(self):


class PageChunk(Base):
__table__ = 'pagechunks'
__tablename__ = 'pagechunks'
id = Column(Integer, primary_key=True)
name = Column(Text, unique=True)
text = Column(Text)

bl = Resource('bl.pagechunk')

def save(self):
db_session.add(self)
db_session.commit()


class PageBlock(Base):
__tablename__ = 'pageblocks'
Expand Down

0 comments on commit b0c6b67

Please sign in to comment.