.
This commit is contained in:
@@ -42,6 +42,7 @@ class LongAdminForm(ModelForm):
|
|||||||
model = Long
|
model = Long
|
||||||
|
|
||||||
fields = [
|
fields = [
|
||||||
|
"description",
|
||||||
"history",
|
"history",
|
||||||
"sign",
|
"sign",
|
||||||
"feedback",
|
"feedback",
|
||||||
|
|||||||
+2
-2
@@ -149,7 +149,7 @@ class Long(models.Model):
|
|||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
examinations = [series.get_examination() for series in self.series.all()]
|
examinations = [series.get_examination() for series in self.series.all()]
|
||||||
return "{} : {}".format(self.description, ", ".join(examinations))
|
return "{}/{} : {}".format(self.pk, self.description, ", ".join(examinations))
|
||||||
|
|
||||||
def get_exams(self):
|
def get_exams(self):
|
||||||
e = self.exams.all().values_list("name", flat=True)
|
e = self.exams.all().values_list("name", flat=True)
|
||||||
@@ -368,7 +368,7 @@ class LongSeries(models.Model):
|
|||||||
#long_id = self.long.pk
|
#long_id = self.long.pk
|
||||||
else:
|
else:
|
||||||
long_id = "None"
|
long_id = "None"
|
||||||
return "{} : {} [{}]".format(
|
return "{}/{} : {} [{}]".format(self.pk,
|
||||||
self.get_examination(), self.description, long_id
|
self.get_examination(), self.description, long_id
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user