Browse Source

block表增加了新的一行:order

master
邓淳远 4 years ago
parent
commit
e4c1f9c546
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      APP/view/model.py

+ 5
- 3
APP/view/model.py View File

@ -21,9 +21,9 @@ class Collection(Base):
tag = Column(String(255))
phonenum = Column(String(255))
like = Column(Integer)
order =Column(Integer)
order = Column(Integer)
def __init__(self, id=None, name=None, tag=None, phonenum=None, like=0,order=None):
def __init__(self, id=None, name=None, tag=None, phonenum=None, like=0, order=None):
self.id = id
self.name = name
self.tag = tag
@ -38,13 +38,15 @@ class Block(Base):
content_text = Column(String(255))
content_pic = Column(BLOB)
type = Column(Integer)
order = Column(Integer)
# type = Column(String(255))
def __init__(self, id=None, content_text=None,content_pic=None):
def __init__(self, id=None, content_text=None, content_pic=None, order=None, type=None):
self.id = id
self.content_text = content_text
self.content_pic = content_pic
self.type = type
self.order = order
class CollectionBlock(Base):

Loading…
Cancel
Save