#
def get_points(self):
points = PointOfLoadAndUnload.objects.filter(order_id=self.id)
if len(points) == 0:
return 0
points_str = []
for i in range(len(points)):
points_str.append(str(points[i].city) + "--" + str(points[i].address))
return django.utils.safestring.mark_safe(f'\n<br>'.join(points_str))
get_points.short_description = "Точки загрузки/выгрузки"