|
|
|
@ -61,7 +61,6 @@ class Document(Model):
|
|
|
|
id_document = IntegerField(primary_key=True)
|
|
|
|
id_document = IntegerField(primary_key=True)
|
|
|
|
inst_doc = ForeignKeyField(Institution, backref='document')
|
|
|
|
inst_doc = ForeignKeyField(Institution, backref='document')
|
|
|
|
collection_doc = TextField()
|
|
|
|
collection_doc = TextField()
|
|
|
|
state_doc = ForeignKeyField(State, backref='document')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Meta:
|
|
|
|
class Meta:
|
|
|
|
database = db
|
|
|
|
database = db
|
|
|
|
@ -74,6 +73,7 @@ class Acte(Model):
|
|
|
|
analysis = TextField()
|
|
|
|
analysis = TextField()
|
|
|
|
doc_acte = ForeignKeyField(Document, backref='acte')
|
|
|
|
doc_acte = ForeignKeyField(Document, backref='acte')
|
|
|
|
diplo_type_acte = ForeignKeyField(Diplo_type, backref='acte')
|
|
|
|
diplo_type_acte = ForeignKeyField(Diplo_type, backref='acte')
|
|
|
|
|
|
|
|
state_doc = ForeignKeyField(State, backref='acte')
|
|
|
|
|
|
|
|
|
|
|
|
class Meta:
|
|
|
|
class Meta:
|
|
|
|
database = db
|
|
|
|
database = db
|
|
|
|
|