drf-appkit 1.6.4__tar.gz → 1.6.6__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.
- {drf_appkit-1.6.4/drf_appkit.egg-info → drf_appkit-1.6.6}/PKG-INFO +1 -1
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/api/filters.py +2 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/api/mixins.py +3 -14
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/models.py +2 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6/drf_appkit.egg-info}/PKG-INFO +1 -1
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/setup.cfg +1 -1
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/LICENSE +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/MANIFEST.in +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/README.md +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/__init__.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/api/__init__.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/api/pagination.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/api/relations.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/api/renderers.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/api/serializers.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/api/tests.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/api/views.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/apps.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/auth/__init__.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/auth/backends.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/auth/decorators.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/auth/email.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/auth/permissions.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/debug.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/drf/__init__.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/drf/adapters.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/drf/authentication.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/drf/backends.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/drf/endpoints.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/drf/exceptions.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/drf/fields.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/drf/filters.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/drf/mixins.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/drf/permissions.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/drf/serializers.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/drf_appkit.egg-info/PKG-INFO +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/drf_appkit.egg-info/SOURCES.txt +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/drf_appkit.egg-info/dependency_links.txt +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/drf_appkit.egg-info/top_level.txt +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/forms/__init__.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/forms/widgets.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/handlers.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/jinja2/appkit/forms/widgets/money_widget.html +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/managers.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0001_initial.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0002_arrangement_tags.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0003_auto_20210221_0852.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0004_auto_20210309_0655.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0005_auto_20210324_1046.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0006_sitealias.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0007_auto_20211021_1901.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0008_update_autofields.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0009_alter_arrangement_unique_together_and_more.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0010_arrangement_name.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0011_alter_sitealias_options.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0012_alter_sitealias_site.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0013_usergroup.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0014_remove_note_notes_note_content_type_note_object_id.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0015_alter_note_content_type_alter_note_object_id.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0016_alter_arrangementitem_unique_together_and_more.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0017_alter_imageattachment_image.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0018_place_geoposition.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0019_alter_place_geoposition.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0020_remove_arrangement_type_arrangement_content_type.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0021_rename_content_type_arrangement_item_type.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0022_imageattachment_rendition_key_imageattachment_warm.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0023_delete_usergroup.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0024_place_city_place_country_place_postal_code_and_more.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0025_mediaattachment_placeholder.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0026_mediaattachment_attributes_and_more.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0027_share.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/__init__.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/notification.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/settings.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/shortcuts.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/storages.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/tests.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/transformers.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/util.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/views.py +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/drf_appkit.egg-info/SOURCES.txt +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/drf_appkit.egg-info/dependency_links.txt +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/drf_appkit.egg-info/top_level.txt +0 -0
- {drf_appkit-1.6.4 → drf_appkit-1.6.6}/setup.py +0 -0
|
@@ -32,7 +32,7 @@ get_current_site = appkit_settings.CURRENT_SITE_ACCESSOR
|
|
|
32
32
|
# ------------------------------------------------------------------------------
|
|
33
33
|
# ViewSet Mixins
|
|
34
34
|
# ------------------------------------------------------------------------------
|
|
35
|
-
class DocumentViewSetMixin
|
|
35
|
+
class DocumentViewSetMixin:
|
|
36
36
|
def get_queryset(self):
|
|
37
37
|
queryset = super().get_queryset()
|
|
38
38
|
current_site = get_current_site(self.request)
|
|
@@ -156,19 +156,8 @@ class AttachmentMixin(FlowFileUploadMixin):
|
|
|
156
156
|
return Response(serialized_data, status=status.HTTP_201_CREATED)
|
|
157
157
|
"""
|
|
158
158
|
|
|
159
|
-
|
|
160
|
-
# ------------------------------------------------------------------------------
|
|
161
|
-
class NoteMixin(object):
|
|
162
|
-
@action(detail=True, methods=['get'])
|
|
163
|
-
def notes(self, request, **kwargs):
|
|
164
|
-
item = self.get_object()
|
|
165
|
-
|
|
166
|
-
serializer = self.get_serializer(item.notes.all(), many=True)
|
|
167
|
-
return Response(serializer.data)
|
|
168
|
-
|
|
169
|
-
|
|
170
159
|
# ------------------------------------------------------------------------------
|
|
171
|
-
class ListExportMixin
|
|
160
|
+
class ListExportMixin:
|
|
172
161
|
@action(detail=False, methods=['get'])
|
|
173
162
|
def export(self, request, **kwargs):
|
|
174
163
|
item_qs = self.filter_queryset(self.get_queryset())
|
|
@@ -177,7 +166,7 @@ class ListExportMixin(object):
|
|
|
177
166
|
|
|
178
167
|
|
|
179
168
|
# ------------------------------------------------------------------------------
|
|
180
|
-
class TaggableMixin
|
|
169
|
+
class TaggableMixin:
|
|
181
170
|
@action(detail=False, methods=['post'])
|
|
182
171
|
def batch_update_tags(self, request, **kwargs):
|
|
183
172
|
tag_ids = request.data['tag_ids']
|
|
@@ -394,6 +394,8 @@ class AbstractProduct(Thing):
|
|
|
394
394
|
price = MoneyField(max_digits=14, decimal_places=2, blank=True, null=True, default_currency=None)
|
|
395
395
|
sku = models.CharField(max_length=64, blank=True, null=True)
|
|
396
396
|
|
|
397
|
+
media_attachments = GenericRelation(MediaAttachment)
|
|
398
|
+
|
|
397
399
|
class Meta:
|
|
398
400
|
abstract = True
|
|
399
401
|
|
|
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
|
|
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
|
{drf_appkit-1.6.4 → drf_appkit-1.6.6}/appkit/migrations/0026_mediaattachment_attributes_and_more.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
|