diff --git a/photologue_custom/models.py b/photologue_custom/models.py
index 76be399..09e2765 100644
--- a/photologue_custom/models.py
+++ b/photologue_custom/models.py
@@ -40,7 +40,7 @@ class PhotoExtended(models.Model):
# Extend Photologue Photo model.
photo = models.OneToOneField(
Photo,
- related_name='extented',
+ related_name='extended',
on_delete=models.CASCADE,
)
diff --git a/photologue_custom/templates/photologue/gallery_detail.html b/photologue_custom/templates/photologue/gallery_detail.html
index f8f3ef4..f9f0819 100644
--- a/photologue_custom/templates/photologue/gallery_detail.html
+++ b/photologue_custom/templates/photologue/gallery_detail.html
@@ -65,7 +65,7 @@
{% for photo in photos %}
-
+
{% endfor %}
diff --git a/photologue_custom/views.py b/photologue_custom/views.py
index cb79800..509f6b8 100644
--- a/photologue_custom/views.py
+++ b/photologue_custom/views.py
@@ -56,12 +56,12 @@ class CustomGalleryDetailView(DetailView):
# List owners
context['owners'] = []
for photo in context['photos']:
- if photo.extented.owner not in context['owners']:
- context['owners'].append(photo.extented.owner)
+ if photo.extended.owner not in context['owners']:
+ context['owners'].append(photo.extended.owner)
# Filter on owner
if 'owner' in self.kwargs:
- context['photos'] = context['photos'].filter(extented__owner__id=self.kwargs['owner'])
+ context['photos'] = context['photos'].filter(extended__owner__id=self.kwargs['owner'])
return context