.
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
# Generated by Django 3.1.3 on 2021-02-14 23:01
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('longs', '0015_auto_20210214_2028'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name='longseriesimage',
|
||||||
|
options={'ordering': ['position']},
|
||||||
|
),
|
||||||
|
]
|
||||||
+1
-1
@@ -223,7 +223,7 @@ class LongSeries(models.Model):
|
|||||||
def get_image_urls(self, feedback=False):
|
def get_image_urls(self, feedback=False):
|
||||||
images = [
|
images = [
|
||||||
"http://penracourses.org.uk{}".format(i.image.url)
|
"http://penracourses.org.uk{}".format(i.image.url)
|
||||||
for i in self.images.all()
|
for i in self.images.order_by("position")
|
||||||
]
|
]
|
||||||
|
|
||||||
return ",".join(images)
|
return ",".join(images)
|
||||||
|
|||||||
Reference in New Issue
Block a user