Adam Hill
Adam Hill
- would this require it's own middleware? - could I piggyback on django-debug-toolbar?
An example with crispy forms for https://github.com/adamghill/django-unicorn/discussions/368 and https://github.com/adamghill/django-unicorn/issues/362.
Once Django 3.1 and async views are available, see how hard it would be to use an async view if configured.
Related to https://github.com/adamghill/django-unicorn/issues/100 for models, but will need a separate approach because actions always need to go through the entire AJAX lifecycle since anything can happen inside the component's view....
As an additional precaution over the checksum (or maybe replacing the checksum?), look into https://docs.djangoproject.com/en/3.1/topics/signing/#protecting-complex-data-structures which is built into Django.
It would be nice to handle the common pattern of disabling a button after it gets clicked once so it doesn't get clicked multiple times before the new component gets...