summaryrefslogtreecommitdiff
path: root/app/locations
diff options
context:
space:
mode:
Diffstat (limited to 'app/locations')
-rw-r--r--app/locations/migrations/0007_campsite.py3
-rw-r--r--app/locations/models.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/app/locations/migrations/0007_campsite.py b/app/locations/migrations/0007_campsite.py
index 116b5ed..a6671e6 100644
--- a/app/locations/migrations/0007_campsite.py
+++ b/app/locations/migrations/0007_campsite.py
@@ -9,7 +9,6 @@ import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
- ('photos', '0018_auto_20161130_1218'),
('locations', '0006_auto_20180629_1739'),
]
@@ -26,7 +25,7 @@ class Migration(migrations.Migration):
('campsite_we_wish_we_had', models.IntegerField(blank=True, null=True)),
('body_markdown', models.TextField(blank=True, null=True)),
('body_html', models.TextField(blank=True, null=True)),
- ('image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='photos.LuxImage')),
+ ('image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='media.LuxImage')),
('location', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location')),
],
options={
diff --git a/app/locations/models.py b/app/locations/models.py
index dfd8f27..e27e6cc 100644
--- a/app/locations/models.py
+++ b/app/locations/models.py
@@ -287,7 +287,7 @@ class Campsite(models.Model):
campsite_we_wish_we_had = models.IntegerField(blank=True, null=True)
body_markdown = models.TextField(blank=True, null=True)
body_html = models.TextField(blank=True, null=True)
- image = models.ForeignKey("photos.LuxImage", on_delete=models.CASCADE, null=True, blank=True)
+ image = models.ForeignKey("media.LuxImage", on_delete=models.CASCADE, null=True, blank=True)
class Meta:
ordering = ('-date_arrived',)