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

A django application that tries to eliminate annoying things in the Django framework. ⛺

Results 10 django-annoying issues
Sort by recently updated
recently updated
newest added

Fixes #103 ## Test plan #### Pyright recognizes a `Model` type #### Pyright rejects a non-model type #### Pyright rejects an instance of a model in place of the type...

I have been enjoying using `get_object_or_None` all over my project in place of lazy incorrect `.first()` calls, and it's really great. However, it has the downside of losing the information...

May I respectfully ask when Django 5 support will be added? It's not currently listed as supported, so as a result myself and others will simply avoid it out of...

## System OS: Linux Python: 3.5.1 Django: 1.9.5 Annoying: 0.9.0 ## Example From README.md. ``` from annoying.fields import AutoOneToOneField class MyProfile(models.Model): user = AutoOneToOneField(User, primary_key=True) home_page = models.URLField(max_length=255, blank=True) icq...

When using AutoOneToOneField with Proxy model, I've a hard time to get the related model. The similar setup with OneToOneField doesn't have problem. While I check the code I found...

Current json serializer doesn't support few basic python types. Instead of half-baked serializer used now, maybe Django's encoder class should be used: https://github.com/django/django/blob/master/django/core/serializers/json.py#L84 This encoder supports additional types: - datetime,...

Imagine a lookup `model_a__model_b__field_c` added to a `ModelAdmin.list_filters`, which employs `AutoOneToOneField` as a relationship field between `model_a` and `model_b`. Method `lookup_allowed` would return false once you try to use it....

When you have, say, 3 models, 1 is primary, and the other 2 both have AutoOneToOneField, only one model/relationship is auto created.

Redirect middleware is a very good idea, but it's usage is quite narrow. It would be good to use more generic approach, with richer exception hierarchy, which would allow to...

If I add autostrip decorator on a ModelForm and call is_valid method on the form in my own view, white spaces are stripped correctly. But if I tell a ModelAdmin...