diff --git a/app/modeles/princes_db_tables.py b/app/modeles/princes_db_tables.py index 081c97f..f3312a3 100644 --- a/app/modeles/princes_db_tables.py +++ b/app/modeles/princes_db_tables.py @@ -61,7 +61,6 @@ class Document(Model): id_document = IntegerField(primary_key=True) inst_doc = ForeignKeyField(Institution, backref='document') collection_doc = TextField() - state_doc = ForeignKeyField(State, backref='document') class Meta: database = db @@ -74,6 +73,7 @@ class Acte(Model): analysis = TextField() doc_acte = ForeignKeyField(Document, backref='acte') diplo_type_acte = ForeignKeyField(Diplo_type, backref='acte') + state_doc = ForeignKeyField(State, backref='acte') class Meta: database = db