Skip to content

Commit

Permalink
Blacken docs
Browse files Browse the repository at this point in the history
  • Loading branch information
j4mie committed Dec 16, 2021
1 parent 8ae7838 commit 02f684f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Here's how the code looks now:
```python
from dynamic_forms import DynamicField, DynamicFormMixin


class SelectUserFromMyTeamForm(DynamicFormMixin, forms.Form):
user = DynamicField(
forms.ModelChoiceField,
Expand Down Expand Up @@ -130,6 +131,7 @@ def htmx_form(request):
form = MakeAndModelForm()
return render(request, "htmx.html", {"form": form})


def htmx_models(request):
form = MakeAndModelForm(request.GET)
return HttpResponse(form["model"])
Expand Down Expand Up @@ -253,7 +255,7 @@ class CancellationReasonForm(DynamicFormMixin, forms.Form):
forms.CharField,
include=lambda form: form["cancellation_reason"].value() == "other",
widget=lambda _: forms.TextArea,
)
)
```

## Why the awkward name?
Expand Down

0 comments on commit 02f684f

Please sign in to comment.