summaryrefslogtreecommitdiff
path: root/app/sightings
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-07-07 20:41:09 -0400
committerluxagraf <sng@luxagraf.net>2018-07-07 20:41:09 -0400
commit6a2393e6819ea09aeb559354a69746750aa8cbdf (patch)
tree0ac9890740f9afcd9720ea9b550a3895d95ecb50 /app/sightings
parentfe13c3830c6b36fb8f78009a788650a992cb3070 (diff)
added campsite model, refactored some code to avoid circular imports,
reorganized some auxilary functions and fixed broken build JS.
Diffstat (limited to 'app/sightings')
-rw-r--r--app/sightings/migrations/0006_auto_20180707_0958.py24
-rw-r--r--app/sightings/models.py5
2 files changed, 26 insertions, 3 deletions
diff --git a/app/sightings/migrations/0006_auto_20180707_0958.py b/app/sightings/migrations/0006_auto_20180707_0958.py
new file mode 100644
index 0000000..1db6cc8
--- /dev/null
+++ b/app/sightings/migrations/0006_auto_20180707_0958.py
@@ -0,0 +1,24 @@
+# Generated by Django 2.0.1 on 2018-07-07 09:58
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('sightings', '0005_auto_20180516_1759'),
+ ]
+
+ operations = [
+ migrations.RenameField(
+ model_name='sighting',
+ old_name='date',
+ new_name='pub_date',
+ ),
+ migrations.AlterField(
+ model_name='ap',
+ name='image',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='photos.LuxImage'),
+ ),
+ ]
diff --git a/app/sightings/models.py b/app/sightings/models.py
index 7368bd4..fd5cba6 100644
--- a/app/sightings/models.py
+++ b/app/sightings/models.py
@@ -10,12 +10,11 @@ from django import forms
from django.conf import settings
from bs4 import BeautifulSoup
-# from photos.models import LuxImage
from locations.models import Location
from photos.models import LuxImage
-from utils.widgets import parse_image
-from utils.widgets import markdown_to_html
+
+from utils.util import parse_image, markdown_to_html
from utils.next_prev import next_in_order, prev_in_order