Correction misspelling
This commit is contained in:
parent
807812cb2e
commit
b6dfbf9af6
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ class GalleryDetailView(LoginRequiredMixin, DetailView):
|
|||
if self.request.user.is_staff:
|
||||
context["photos"] = self.object.photos.all().select_related('owner')
|
||||
else:
|
||||
context["photos"] = self.object.photos.filter(is_public=True).select_related('onwer')
|
||||
context["photos"] = self.object.photos.filter(is_public=True).select_related('owner')
|
||||
|
||||
# List owners
|
||||
context["owners"] = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue