diff --git a/shortcode/views.py b/shortcode/views.py index 6d35703..d29ef14 100644 --- a/shortcode/views.py +++ b/shortcode/views.py @@ -35,9 +35,5 @@ def post(self, request): "obj": obj, "created": created, } - if created: - template = "success.html" - else: - template = "already_exists.html" - + template = "success.html" if created else "already_exists.html" return render(request, template ,context)