biased 0.1.2.dev1__tar.gz → 0.1.2.dev2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/PKG-INFO +1 -1
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/pyproject.toml +1 -1
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/admin.py +3 -1
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/filters/entity_filter.py +2 -1
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/templates/actions_change_form.html +4 -1
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/dtos/logging.py +2 -1
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/README.md +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/__init__.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/__init__.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/apps.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/aws_waf/__init__.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/aws_waf/aws_waf_regex_pattern.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/aws_waf/aws_waf_whitelist_middleware.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/aws_waf/url_patterns.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/dtos.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/filters/__init__.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/filters/input_filter.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/forms/__init__.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/forms/json_editor_widget.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/forms/pydantic_model_form_field.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/models/__init__.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/models/bank_account.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/models/char_field.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/models/created_at_modified_at_mixin.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/models/default_money_amount_field.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/models/deleted_at_mixin.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/models/multi_select_field.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/models/pydantic_model_field.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/templates/admin/input_filter.html +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/utils/__init__.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/utils/choices.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/utils/default_json_encoder.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/utils/get_client_ip.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/utils/reverse.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django_redis/__init__.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django_redis/pydantic_serializer.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/dtos/__init__.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/dtos/base.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/dtos/env_file_paths.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/logging/__init__.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/logging/dict_config.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/logging/settings.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/logging/utils.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/ninja/__init__.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/ninja/json_renderrer.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/structlog/__init__.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/structlog/processors.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/types.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/utils/__init__.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/utils/aba_routing_number.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/utils/attrgetter_default.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/utils/calculate_age.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/utils/filter_not_none_values.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/utils/time.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/utils/ulid.py +0 -0
- {biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/utils/uuid.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: biased
|
|
3
|
-
Version: 0.1.2.
|
|
3
|
+
Version: 0.1.2.dev2
|
|
4
4
|
Summary: Various reusable components, helpers, and utilities which I would like to use in any Python project
|
|
5
5
|
Author: Dmitry Tatarkin
|
|
6
6
|
Author-email: Dmitry Tatarkin <tatarkin@gmail.com>
|
|
@@ -156,7 +156,9 @@ class ReadOnlyInlineMixin(InlineModelAdmin):
|
|
|
156
156
|
return False
|
|
157
157
|
|
|
158
158
|
|
|
159
|
-
class ChangeFormActionMixin:
|
|
159
|
+
class ChangeFormActionMixin(ModelAdmin):
|
|
160
|
+
change_form_template = "actions_change_form.html"
|
|
161
|
+
|
|
160
162
|
def change_view(self, request, object_id, form_url="", extra_context=None):
|
|
161
163
|
extra_context = extra_context or {}
|
|
162
164
|
actions = self.get_actions(request)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from enum import StrEnum, auto
|
|
1
|
+
from enum import StrEnum, auto, unique
|
|
2
2
|
|
|
3
3
|
from django.db.models import Q, Value
|
|
4
4
|
from pydantic import TypeAdapter, ValidationError
|
|
@@ -7,6 +7,7 @@ from biased.django.filters.input_filter import CommaSeparatedInputFilter
|
|
|
7
7
|
from biased.types import UlidStr
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
@unique
|
|
10
11
|
class ValueType(StrEnum):
|
|
11
12
|
none = auto()
|
|
12
13
|
int = auto()
|
{biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/templates/actions_change_form.html
RENAMED
|
@@ -13,7 +13,10 @@
|
|
|
13
13
|
|
|
14
14
|
{% block object-tools-items %}
|
|
15
15
|
{{ block.super }}
|
|
16
|
-
{
|
|
16
|
+
{# Workaround to support admin_extra_buttons #}
|
|
17
|
+
{% if adminform.model_admin.get_changeform_buttons %}
|
|
18
|
+
{% include "admin_extra_buttons/includes/change_form_buttons.html" %}
|
|
19
|
+
{% endif %}
|
|
17
20
|
{% endblock %}
|
|
18
21
|
|
|
19
22
|
{% block pretitle %}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/aws_waf/aws_waf_whitelist_middleware.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/forms/pydantic_model_form_field.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/models/created_at_modified_at_mixin.py
RENAMED
|
File without changes
|
{biased-0.1.2.dev1 → biased-0.1.2.dev2}/src/biased/django/models/default_money_amount_field.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|