From 0a82ca21a634815bf75d2616a3ae7ebece70be34 Mon Sep 17 00:00:00 2001 From: Daniel Diaz Date: Wed, 2 Jun 2021 18:07:30 -0500 Subject: [PATCH] Added quick fixes --- config/config/settings.py | 3 ++- config/photoapp/forms.py | 2 +- config/photoapp/templates/photoapp/delete.html | 4 +++- config/photoapp/views.py | 9 ++------- config/users/views.py | 8 +++++--- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/config/config/settings.py b/config/config/settings.py index b56f3f6..bbe7a21 100644 --- a/config/config/settings.py +++ b/config/config/settings.py @@ -110,7 +110,6 @@ }, ] - # Internationalization # https://docs.djangoproject.com/en/3.2/topics/i18n/ @@ -133,6 +132,8 @@ LOGIN_URL = 'user:login' LOGIN_REDIRECT_URL = 'photo:list' +LOGOUT_REDIRECT_URL = 'photo:list' + # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.2/howto/static-files/ diff --git a/config/photoapp/forms.py b/config/photoapp/forms.py index 3f3c4ef..6dc8542 100644 --- a/config/photoapp/forms.py +++ b/config/photoapp/forms.py @@ -17,5 +17,5 @@ class UpdatePhotoForm(forms.ModelForm): class Meta: model = Photo - fields = ('title', 'description') + fields = ('title', 'description', 'tags') diff --git a/config/photoapp/templates/photoapp/delete.html b/config/photoapp/templates/photoapp/delete.html index 4b34237..c0cef5e 100644 --- a/config/photoapp/templates/photoapp/delete.html +++ b/config/photoapp/templates/photoapp/delete.html @@ -1,4 +1,6 @@ -{% extends 'base.html' %} {% block body %} +{% extends 'base.html' %} + +{% block body %}

You are going to delete: "