From 4e4cf244a45ae704003f30f1c4654eeaf9485cb9 Mon Sep 17 00:00:00 2001 From: jgenero Date: Thu, 13 Oct 2022 12:15:08 +0200 Subject: [PATCH] add fk state in table acte --- app/modeles/princes_db_tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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