Skip to content

Commit b424d3e

Browse files
committed
2 parents 3bde80e + 887de3b commit b424d3e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

examples/project/app/tests.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_render_fieldset(self):
5454

5555

5656
def test_render_inline_fieldset(self):
57-
InlineForm = inlineformset_factory(Student, Note,
57+
InlineForm = inlineformset_factory(Student, Note,
5858
fields=('subject', 'value',), exclude=('pk',), can_delete=False,
5959
)
6060
context = Context({'form': self.form, 'form_inline': InlineForm()})
@@ -95,5 +95,4 @@ def test_render_inline_fieldset(self):
9595
## inline
9696
self.assertInHTML('<h2 style="background-color: #42945c">Note des eleves</h2>', rendered)
9797
self.assertInHTML('<input type="hidden" name="notes-TOTAL_FORMS" value="3" id="id_notes-TOTAL_FORMS">', rendered)
98-
self.assertInHTML('<a href="#" id="add-info">Ajout supplémentaire</a>', rendered)
99-
98+
self.assertInHTML('<a href="#" id="add-info">Add another</a>', rendered)

examples/project/project/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
# Internationalization
107107
# https://docs.djangoproject.com/en/3.1/topics/i18n/
108108

109-
LANGUAGE_CODE = 'en-us'
109+
LANGUAGE_CODE = 'en-en'
110110

111111
TIME_ZONE = 'UTC'
112112

examples/project/project/urls.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
from django.contrib import admin
1717
from django.urls import path
1818

19+
from app.views import home
20+
1921
urlpatterns = [
20-
path('admin/', admin.site.urls),
22+
path('', home),
2123
]

0 commit comments

Comments
 (0)