Devid

Results 82 issues of Devid

# Feature Request ## Description As of now this package has no support for any filter which uses the [`MultiValueField`](https://docs.djangoproject.com/en/3.2/ref/forms/fields/#multivaluefield). ```python from django.forms import BooleanField, ModelChoiceField, MultiValueField from django_filters.filters import...

## Checklist - [ ] Raised initially as discussion #... - [x] This cannot be dealt with as a third party library. (We prefer new functionality to be [in the...

## Description This PR adds a new feature to `APIView` when using a throttle class. Now the `.wait()` method can return a tuple of two elements: 1. duration (which could...

The method `hash_remember_device_cookie_key` performs a raw casting from bytes to string: https://github.com/jazzband/django-two-factor-auth/blob/52b78a72fbfdeb356cadbc8faf23ac65a2141cc7/two_factor/views/utils.py#L293-L294 Thus the outputh of the method is something like `b'....'` which is probabilly not what it was supposed...

As pointed out in this comment https://github.com/jazzband/django-push-notifications/pull/702#discussion_r1489160018 importing `firebase_admin` or `gcm` at top level in `models.py` turns the `firebase_admin` package as a mandatory requirements while it should not. To address...

When combining a field from this library with `ArrayField` if any of the values in the array is None (or should be translated to `NULL`) an invalid query is generated...

### Summary: To avoid accidental replication it would be nice to have a `UniqueConstraint` on `CrontabSchedule` model. ### Detailed information As matter of fact every row in the `CrontabSchedule` table...

This aims to have a similar method to `find_following_working_day` to be used when a "previous" working day is requested. It also optimize the code of `find_following_working_day` by reducing the creation...

The CPython interpreter has an optimization flag [`-OO`](https://docs.python.org/3.9/using/cmdline.html#cmdoption-oo) which discards assertions and docstrings. https://github.com/pyexcel/pyexcel/blob/ee0722a6b53ada4bb825f4f9d5022040896e4dd6/pyexcel/_compact.py#L68-L73 The current implementation of `append_doc` method causes a `TypeError` if this optimization level is set, since...

Django querysets can be used in a python boolean expression (ie: `bool(qs)` or `if qs:`), however in many cases this is considered a bad practice in django since the [`__bool__`](https://github.com/django/django/blob/798e38c2b9c46ab72e2ee8c33dc822f01b194b1e/django/db/models/query.py#L411-L413)...