diff --git a/django_lostplaces/lostplaces/migrations/0002_remove_vouchers.py b/django_lostplaces/lostplaces/migrations/0002_remove_vouchers.py
new file mode 100644
index 0000000..d87ac47
--- /dev/null
+++ b/django_lostplaces/lostplaces/migrations/0002_remove_vouchers.py
@@ -0,0 +1,22 @@
+# Generated by Django 3.1.1 on 2020-10-04 19:37
+# Edited by reverend
+
+import datetime
+from django.db import migrations, models
+import django.utils.timezone
+from django.utils.timezone import utc
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('lostplaces', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.DeleteModel(
+ name='Voucher'
+ ),
+ migrations.DeleteModel(
+ name='Expireable'
+ )
+ ]
\ No newline at end of file
diff --git a/django_lostplaces/lostplaces/migrations/0003_voucher.py b/django_lostplaces/lostplaces/migrations/0003_voucher.py
index b4be5d8..889f42a 100644
--- a/django_lostplaces/lostplaces/migrations/0003_voucher.py
+++ b/django_lostplaces/lostplaces/migrations/0003_voucher.py
@@ -6,7 +6,7 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
- ('lostplaces', '0002_reomve_vouchers'),
+ ('lostplaces', '0002_remove_vouchers'),
]
operations = [
diff --git a/django_lostplaces/lostplaces/models/models.py b/django_lostplaces/lostplaces/models/models.py
index 5e9f910..d577405 100644
--- a/django_lostplaces/lostplaces/models/models.py
+++ b/django_lostplaces/lostplaces/models/models.py
@@ -16,6 +16,7 @@ from django.dispatch import receiver
from django.utils.translation import ugettext_lazy as _
from lostplaces.models.abstract_models import Expireable
+from lostplaces.models.place import Place
from easy_thumbnails.fields import ThumbnailerImageField
from easy_thumbnails.files import get_thumbnailer
@@ -49,6 +50,13 @@ class Explorer(models.Model):
help_text=_('Optional profile pic for display in explorer profile')
)
+ favorite_places = models.ManyToManyField(
+ Place,
+ related_name='favorite_places',
+ verbose_name='Explorers favorite places',
+ blank=True
+ )
+
def __str__(self):
return self.user.username
diff --git a/django_lostplaces/lostplaces/static/icons/favourite_filled.svg b/django_lostplaces/lostplaces/static/icons/favourite_filled.svg
new file mode 100644
index 0000000..c5cc50c
--- /dev/null
+++ b/django_lostplaces/lostplaces/static/icons/favourite_filled.svg
@@ -0,0 +1,163 @@
+
+
diff --git a/django_lostplaces/lostplaces/templates/explorer/profile.html b/django_lostplaces/lostplaces/templates/explorer/profile.html
index aaf425b..0e49976 100644
--- a/django_lostplaces/lostplaces/templates/explorer/profile.html
+++ b/django_lostplaces/lostplaces/templates/explorer/profile.html
@@ -61,65 +61,63 @@
{% trans 'Places submitted by' %} {{explorer.user.username}}
-
- {% for place in place_list %}
-
+ {% trans 'Places submitted by' %} {{explorer.user.username}}
+
+ {% for place in place_list %}
+
- {% include 'partials/nav/pagination.html' %}
+ {% include 'partials/nav/pagination.html' %}
- {% trans 'Images submitted by' %} {{explorer.user.username}}
- {% trans 'Images submitted by' %} {{explorer.user.username}}
+
{% trans 'Photo albums submitted by' %} {{explorer.user.username}}
-
- {% for photo_album in assets.photoalbums.all %}
-
- {% trans 'Photo albums submitted by' %} {{explorer.user.username}}
+
+ {% for photo_album in assets.photoalbums.all %}
+
+