Python: Model django forms/fields

I'm not feeling 100% confident about `SelfRefMixin`, but since I needed it for
both DjangoViewClass and DjangoFormClass, I wanted to avoid copy-pasting this
code around. However, I'm not so opitimistic about it that I want to add it to a
sharable utility qll file :D
This commit is contained in:
Rasmus Wriedt Larsen
2021-03-22 10:13:57 +01:00
parent 3a83ecf067
commit 8d0f6086af
3 changed files with 150 additions and 35 deletions

View File

@@ -1,15 +1,15 @@
| response_test.py:61 | ok | get_redirect_url | foo |
| taint_forms.py:6 | fail | to_python | value |
| taint_forms.py:9 | fail | validate | value |
| taint_forms.py:12 | fail | run_validators | value |
| taint_forms.py:15 | fail | clean | value |
| taint_forms.py:33 | fail | clean | cleaned_data |
| taint_forms.py:34 | fail | clean | cleaned_data["key"] |
| taint_forms.py:35 | fail | clean | cleaned_data.get(..) |
| taint_forms.py:39 | fail | clean | self.cleaned_data |
| taint_forms.py:40 | fail | clean | self.cleaned_data["key"] |
| taint_forms.py:41 | fail | clean | self.cleaned_data.get(..) |
| taint_forms.py:46 | fail | clean_foo | self.cleaned_data |
| taint_forms.py:6 | ok | to_python | value |
| taint_forms.py:9 | ok | validate | value |
| taint_forms.py:12 | ok | run_validators | value |
| taint_forms.py:15 | ok | clean | value |
| taint_forms.py:33 | ok | clean | cleaned_data |
| taint_forms.py:34 | ok | clean | cleaned_data["key"] |
| taint_forms.py:35 | ok | clean | cleaned_data.get(..) |
| taint_forms.py:39 | ok | clean | self.cleaned_data |
| taint_forms.py:40 | ok | clean | self.cleaned_data["key"] |
| taint_forms.py:41 | ok | clean | self.cleaned_data.get(..) |
| taint_forms.py:46 | ok | clean_foo | self.cleaned_data |
| taint_test.py:8 | ok | test_taint | bar |
| taint_test.py:8 | ok | test_taint | foo |
| taint_test.py:9 | ok | test_taint | baz |