django-braces icon indicating copy to clipboard operation
django-braces copied to clipboard

Reusable, generic mixins for Django

Results 16 django-braces issues
Sort by recently updated
recently updated
newest added

need change: class AjaxResponseMixin(object): def dispatch(self, request, *args, **kwargs): request_method = request.method.lower() if request.is_ajax and request_method in self.http_method_names: here modify: if request.headers.get('x-requested-with') == 'XMLHttpRequest' and request_method in self.http_method_names: its work...

![satisfying](https://media.giphy.com/media/25Eq40remLcmQTsnLV/giphy.gif) This PR introduces a backwards-compatible change to the `HeaderMixin`. Our existing method works but feels kind of heavy-handed. This approach is more in-line with Django's design, IMO, and doesn't...

Let's go for 100. We're only about 2.5% of the way away.

Our tests seem a little overly complicated. We should make sure they're as easy to write as possible. Maybe we should have a "how to write a test" guide

There are small typos in: - docs/other.rst - tests/test_access_mixins.py Fixes: - Should read `respond` rather than `responsed`. - Should read `passing` rather than `passsing`. Semi-automated pull request generated by https://github.com/timgates42/meticulous/blob/master/docs/NOTE.md

$ grep mock -r | grep import tests/test_ajax_mixins.py:import mock tests/test_queries.py:from unittest import mock

Any idea when the next release that support Django 4.2 will be?

https://github.com/brack3t/django-braces/issues/304