P-25 fix
This commit is contained in:
1 parent
948c06ffec
commit
7c0de35389
3 files changed
+4
-3
No files matched your search
@@ -57,7 +57,7 @@ class Committee2(models.Model):
|
||||
verbose_name_plural = 'Участники'
|
||||
|
||||
def __str__(self):
|
||||
return str(self.id_dict_committee_position.name)
|
||||
return str(self.committee_position.name)
|
||||
|
||||
class DictCommitteeExpert(models.Model):
|
||||
fio = models.CharField(max_length=250, blank=True, null=True, db_comment='╘╚╬ ¤ъёяхЁЄр')
|
||||
|
||||
@@ -12,7 +12,8 @@ from userauth.models import *
|
||||
|
||||
class SafetyTypeAPIView(ListAPIView):
|
||||
def get(self, request):
|
||||
chapters = SafetyType.objects.annotate(Count("type_file")).filter(type_file__count__gt=0)
|
||||
print("sdfsdssssssssssssssssssssssssss")
|
||||
chapters = SafetyType.objects.annotate(Count("mainpage_file")).filter(mainpage_file__count__gt=0)
|
||||
return Response(SafetyTypeSerializer(chapters, many=True).data)
|
||||
|
||||
class SafetyAPIView(APIView):
|
||||
|
||||
@@ -126,7 +126,7 @@ function getSafety() {
|
||||
// console.log(safetyData.value);
|
||||
loading.value = true
|
||||
// pdfSource.value = burl + safetyData.value.categories[0].files[0].url
|
||||
// console.log(safetyData.value);
|
||||
console.log(safetyData.value);
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user