summaryrefslogtreecommitdiff
path: root/app/locations
diff options
context:
space:
mode:
Diffstat (limited to 'app/locations')
-rw-r--r--app/locations/admin.py1
-rw-r--r--app/locations/migrations/0011_campsite_campsite_price.py18
2 files changed, 18 insertions, 1 deletions
diff --git a/app/locations/admin.py b/app/locations/admin.py
index 01da84d..4298761 100644
--- a/app/locations/admin.py
+++ b/app/locations/admin.py
@@ -164,7 +164,6 @@ class LocationAdmin(OSMGeoAdmin):
list_display = ('name', 'pub_date', 'parent', 'state', 'slug')
prepopulated_fields = {'slug': ('name',)}
search_fields = ('name', 'state')
- ordering = ('pub_date', 'name')
list_filter = ('pub_date', 'state__country__lux_region', 'state')
save_as = True
search_fields = ['name']
diff --git a/app/locations/migrations/0011_campsite_campsite_price.py b/app/locations/migrations/0011_campsite_campsite_price.py
new file mode 100644
index 0000000..c3251e0
--- /dev/null
+++ b/app/locations/migrations/0011_campsite_campsite_price.py
@@ -0,0 +1,18 @@
+# Generated by Django 2.1.1 on 2018-09-05 11:04
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('locations', '0010_merge_20180708_1047'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='campsite',
+ name='campsite_price',
+ field=models.IntegerField(blank=True, null=True),
+ ),
+ ]