4 ms·
That is a really nice syntax. I kind of like the specificity of ``form_valid`` (for example), though. And, yes, our mixins are Django-only (hence the title!)
by kennethlove 15y ago
That is a really nice syntax. I kind of like the specificity of ``form_valid`` (for example), though.
And, yes, our mixins are Django-only (hence the title!)
Also, why the ``set_test_cookie`` on every GET?
- rlander 15y agoThose snippets were taken from utkik's docs and are probably part of a larger code; but I agree they probably belong somewhere else, maybe in a middleware. BTW, thanks for the nice post. Is the code available on github or bitbucket?
- kennethlove 15y agoYeah, it is actually. https://github.com/brack3t/django-braces https://github.com/brack3t/django-braces is the Github repo, or you can ``pip install django-braces`` into your project. All the mixins are then imported from the ``braces`` package.