From bf15f834b5fedcc0f2bc7ec754556c504831cfc5 Mon Sep 17 00:00:00 2001 From: jgenero Date: Tue, 11 Oct 2022 17:03:06 +0200 Subject: [PATCH] replace archives by institution --- app/modeles/princes_db_tables.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/modeles/princes_db_tables.py b/app/modeles/princes_db_tables.py index 386c21a..ac1fd60 100644 --- a/app/modeles/princes_db_tables.py +++ b/app/modeles/princes_db_tables.py @@ -16,13 +16,13 @@ from peewee import * db = SqliteDatabase('actes_princiers.db') -class Archives(Model): - id_archives = IntegerField(primary_key=True) - archives_name = TextField() +class Institution(Model): + id_institution = IntegerField(primary_key=True) + institution_name = TextField() class Meta: database = db - db_table = 'Archives' + db_table = 'Institution' class State(Model): @@ -55,7 +55,7 @@ class Diplo_type(Model): class Document(Model): id_document = IntegerField(primary_key=True) doc_reference = TextField() - archives_doc = ForeignKeyField(Archives, backref='document') + institution_doc = ForeignKeyField(Institution, backref='document') state_doc = ForeignKeyField(State, backref='document') class Meta: