Replace guarded property with fillable

This commit is contained in:
REDNBLACK 2016-11-18 21:38:53 +03:00
parent 93c3f69aea
commit 3d97432f9d
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import src.entity.word
class Reply(Model):
__guarded__ = ['id']
__fillable__ = ['pair_id', 'word_id', 'count']
__timestamps__ = False
@belongs_to_many

View File

@ -5,7 +5,7 @@ import src.entity.chat
class Word(Model):
__guarded__ = ['id']
__fillable__ = ['word']
__timestamps__ = False
@has_many