diff --git a/django_lostplaces/lostplaces/models/models.py b/django_lostplaces/lostplaces/models/models.py
index 2d39ca6..5914583 100644
--- a/django_lostplaces/lostplaces/models/models.py
+++ b/django_lostplaces/lostplaces/models/models.py
@@ -62,6 +62,12 @@ class Explorer(models.Model):
verbose_name='Explorers favorite places',
blank=True
)
+ visited_places = models.ManyToManyField(
+ Place,
+ related_name='explorer_visits',
+ verbose_name='Explorers visited places',
+ blank=True
+ )
def __str__(self):
return self.user.username
diff --git a/django_lostplaces/lostplaces/templates/explorer/profile.html b/django_lostplaces/lostplaces/templates/explorer/profile.html
index 8bdd07d..f8779b6 100644
--- a/django_lostplaces/lostplaces/templates/explorer/profile.html
+++ b/django_lostplaces/lostplaces/templates/explorer/profile.html
@@ -92,9 +92,21 @@
{% endfor %}
-
{% include 'partials/nav/pagination.html' %}
+
+
+
+
+
{% trans 'Visited places' %}
+
+ {% for place in explorer.visited_places.all %}
+ -
+ {% include 'partials/place_teaser.html' with place=place extended=True %}
+
+ {% endfor %}
+
+ {% include 'partials/nav/pagination.html' %}
diff --git a/django_lostplaces/lostplaces/templates/partials/icons/place_visited.html b/django_lostplaces/lostplaces/templates/partials/icons/place_visited.html
new file mode 100644
index 0000000..79232c2
--- /dev/null
+++ b/django_lostplaces/lostplaces/templates/partials/icons/place_visited.html
@@ -0,0 +1,14 @@
+{%load static %}
+{% load i18n %}
+
+{% if request.user %}
+{% if place in request.user.explorer.visited_places.all %}
+
+
+
+{%else%}
+
+
+
+{% endif %}
+{% endif %}
\ No newline at end of file
diff --git a/django_lostplaces/lostplaces/templates/partials/place_teaser.html b/django_lostplaces/lostplaces/templates/partials/place_teaser.html
index aa1418f..7028eb1 100644
--- a/django_lostplaces/lostplaces/templates/partials/place_teaser.html
+++ b/django_lostplaces/lostplaces/templates/partials/place_teaser.html
@@ -31,7 +31,7 @@
- {% include 'partials/icons/place_favorite.html' with place=place%}
-
+ - {% include 'partials/icons/place_visited.html' with place=place%}
diff --git a/django_lostplaces/lostplaces/templates/place/place_detail.html b/django_lostplaces/lostplaces/templates/place/place_detail.html
index 5db1360..dbbd06f 100644
--- a/django_lostplaces/lostplaces/templates/place/place_detail.html
+++ b/django_lostplaces/lostplaces/templates/place/place_detail.html
@@ -23,7 +23,7 @@