Fixed typo and / url.

This commit is contained in:
Marcus Scholz 2020-08-04 22:10:31 +02:00
parent fc7a847f6d
commit 66404eea87
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ from .views import (
urlpatterns = [ urlpatterns = [
path('hello_world/', hello_world), # You know what this is :P path('hello_world/', hello_world), # You know what this is :P
path('', HomeView.as_view(), name='home'), path('/', HomeView.as_view(), name='home'),
path('signup/', SignUpView.as_view(), name='signup'), path('signup/', SignUpView.as_view(), name='signup'),
path('place/<int:pk>/', place_detail_view, name='place_detail'), path('place/<int:pk>/', place_detail_view, name='place_detail'),
path('place/create/', PlaceCreateView.as_view(), name='place_create'), path('place/create/', PlaceCreateView.as_view(), name='place_create'),

View File

@ -83,7 +83,7 @@ class PlaceCreateView(View):
} }
return render(request, 'create_place.html', context) return render(request, 'create_place.html', context)
def _apply_multipart_image_upload(self, files, place, submitter):: def _apply_multipart_image_upload(self, files, place, submitter):
place_image = PlaceImage.objects.create( place_image = PlaceImage.objects.create(
filename=image, filename=image,
place=place, place=place,