Merge remote-tracking branch 'origin/52_fire' into develop

This commit is contained in:
Nukeap committed 2024-05-16 15:42:36 +03:00
commit 3efc8fdfcd
14 files changed
+347 -394

No files matched your search

+23 -1
View File
@@ -23,16 +23,26 @@ class Committee1(models.Model):
db_table = 'committee1'
db_table_comment = '╤яшёюъ ъюьшёёшщ'
def __str__(self):
return str(self.name)
class Committee1Files(models.Model):
id_committee1 = models.ForeignKey(Committee1, models.DO_NOTHING, db_column='id_committee1', db_comment='╚─ ъюьшёёшш')
file_name = models.CharField(max_length=1024, db_comment='╚ь  Їрщыр')
file_name = models.FileField(null=True, blank=True, upload_to='comitee_files')
# file_name = models.CharField(max_length=1024, db_comment='╚ь Їрщыр')
is_actual = models.IntegerField(db_comment='╧Ёшчэръ ръЄєры№эюёЄш Їрщыр')
class Meta:
managed = False
db_table = 'committee1_files'
def __str__(self):
return str(self.file_name)
def save(self, *args, **kwargs):
super().save(*args, **kwargs)
class Committee2(models.Model):
id_committee1 = models.ForeignKey(Committee1, models.DO_NOTHING, db_column='id_committee1', db_comment='╙эшъры№э√щ эюьхЁ ъюьшёёшш')
@@ -45,6 +55,9 @@ class Committee2(models.Model):
db_table = 'committee2'
db_table_comment = '╤юёЄрт ъюьшёёшщ'
def __str__(self):
return str(self.id_dict_committee_position.name)
class DictCommitteeExpert(models.Model):
fio = models.CharField(max_length=250, blank=True, null=True, db_comment='╘╚╬ ¤ъёяхЁЄр')
@@ -54,6 +67,9 @@ class DictCommitteeExpert(models.Model):
managed = False
db_table = 'dict_committee_expert'
db_table_comment = '╤яЁртюўэшъ эхчртшёшь√ї ¤ъёяхЁЄют'
def __str__(self):
return str(self.fio)
class DictCommitteeOrderAddon(models.Model):
@@ -79,6 +95,9 @@ class DictCommitteePosition(models.Model):
db_table = 'dict_committee_position'
db_table_comment = '╤яЁртюўэшъ фюыцэюёЄхщ ъюьшёёшщ'
def __str__(self):
return str(self.name_short)
class DictCommitteeType(models.Model):
name = models.CharField(max_length=100, blank=True, null=True, db_comment='═ршьхэютрэшх тшфр ъюьшёёшш')
@@ -88,6 +107,9 @@ class DictCommitteeType(models.Model):
db_table = 'dict_committee_type'
db_table_comment = '╤яЁртюўэшъ тшфют ъюьшёёшщ'
def __str__(self):
return str(self.name)
class DictCompetences(models.Model):
id_dict_competences_type = models.ForeignKey('DictCompetencesType', models.DO_NOTHING, db_column='id_dict_competences_type', db_comment='шфхэЄшЇшърЄюЁ уЁєяя√ ъюьяхЄхэЎшш')