diff options
| author | django-bot <ops@djangoproject.com> | 2022-02-03 20:24:19 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-07 20:37:05 +0100 |
| commit | 9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch) | |
| tree | f0506b668a013d0063e5fba3dbf4863b466713ba /tests/forms_tests/views.py | |
| parent | f68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff) | |
Refs #33476 -- Reformatted code with Black.
Diffstat (limited to 'tests/forms_tests/views.py')
| -rw-r--r-- | tests/forms_tests/views.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/forms_tests/views.py b/tests/forms_tests/views.py index 20f1bf161d..b03472824d 100644 --- a/tests/forms_tests/views.py +++ b/tests/forms_tests/views.py @@ -11,12 +11,12 @@ class ArticleForm(forms.ModelForm): class Meta: model = Article - fields = '__all__' + fields = "__all__" class ArticleFormView(UpdateView): model = Article - success_url = '/' + success_url = "/" form_class = ArticleForm @@ -24,6 +24,6 @@ def form_view(request): class Form(forms.Form): number = forms.FloatField() - template = Template('<html>{{ form }}</html>') - context = Context({'form': Form()}) + template = Template("<html>{{ form }}</html>") + context = Context({"form": Form()}) return HttpResponse(template.render(context)) |
