mirror of
https://github.com/Findus23/se-simulator.git
synced 2024-09-11 06:33:48 +02:00
default one upvote and downvote
This commit is contained in:
parent
09ced6ae6e
commit
86b754be2a
1 changed files with 4 additions and 4 deletions
|
@ -36,8 +36,8 @@ class User(BaseModel):
|
|||
|
||||
class Question(BaseModel):
|
||||
text = TextField()
|
||||
upvotes = IntegerField(default=0)
|
||||
downvotes = IntegerField(default=0)
|
||||
upvotes = IntegerField(default=1)
|
||||
downvotes = IntegerField(default=1)
|
||||
title = ForeignKeyField(Title)
|
||||
user = ForeignKeyField(User)
|
||||
site = ForeignKeyField(Site)
|
||||
|
@ -47,8 +47,8 @@ class Question(BaseModel):
|
|||
|
||||
class Answer(BaseModel):
|
||||
text = TextField()
|
||||
upvotes = IntegerField(default=0)
|
||||
downvotes = IntegerField(default=0)
|
||||
upvotes = IntegerField(default=1)
|
||||
downvotes = IntegerField(default=1)
|
||||
datetime = DateTimeField()
|
||||
question = ForeignKeyField(Question, null=True)
|
||||
user = ForeignKeyField(User)
|
||||
|
|
Loading…
Reference in a new issue