Renamed PlaceImageCreateForm to PlaceImageForm.

This commit is contained in:
2020-09-18 23:50:25 +02:00
parent 2a3ee3de8d
commit eb7fe88d59
3 changed files with 6 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ from lostplaces.views import (
PlaceListView,
PlaceDetailView
)
from lostplaces.forms import PlaceImageCreateForm, PlaceForm
from lostplaces.forms import PlaceImageForm, PlaceForm
from lostplaces.tests.views import (
ViewTestCase,
TaggableViewTestCaseMixin,
@@ -49,7 +49,7 @@ class TestPlaceCreateView(ViewTestCase):
self.client.login(username='testpeter', password='Develop123')
response = self.client.get(reverse('place_create'))
self.assertHasForm(response, 'place_image_form', PlaceImageCreateForm)
self.assertHasForm(response, 'place_image_form', PlaceImageForm)
self.assertHasForm(response, 'place_form', PlaceForm)