drf-appkit 1.4.8__tar.gz → 1.4.9__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.4.8/drf_appkit.egg-info → drf_appkit-1.4.9}/PKG-INFO +1 -1
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/api/views.py +3 -1
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/notification.py +6 -1
- {drf_appkit-1.4.8 → drf_appkit-1.4.9/drf_appkit.egg-info}/PKG-INFO +1 -1
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/setup.cfg +1 -1
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/LICENSE +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/MANIFEST.in +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/README.md +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/__init__.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/api/__init__.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/api/filters.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/api/mixins.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/api/pagination.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/api/relations.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/api/renderers.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/api/serializers.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/api/tests.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/apps.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/auth/__init__.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/auth/backends.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/auth/decorators.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/auth/email.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/auth/permissions.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/debug.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/drf/__init__.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/drf/adapters.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/drf/authentication.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/drf/backends.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/drf/endpoints.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/drf/exceptions.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/drf/fields.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/drf/filters.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/drf/mixins.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/drf/permissions.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/drf/serializers.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/drf_appkit.egg-info/PKG-INFO +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/drf_appkit.egg-info/SOURCES.txt +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/drf_appkit.egg-info/dependency_links.txt +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/drf_appkit.egg-info/top_level.txt +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/forms/__init__.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/forms/widgets.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/handlers.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/jinja2/appkit/forms/widgets/money_widget.html +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/managers.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0001_initial.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0002_arrangement_tags.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0003_auto_20210221_0852.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0004_auto_20210309_0655.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0005_auto_20210324_1046.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0006_sitealias.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0007_auto_20211021_1901.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0008_update_autofields.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0009_alter_arrangement_unique_together_and_more.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0010_arrangement_name.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0011_alter_sitealias_options.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0012_alter_sitealias_site.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0013_usergroup.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0014_remove_note_notes_note_content_type_note_object_id.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0015_alter_note_content_type_alter_note_object_id.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0016_alter_arrangementitem_unique_together_and_more.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0017_alter_imageattachment_image.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0018_place_geoposition.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0019_alter_place_geoposition.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0020_remove_arrangement_type_arrangement_content_type.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0021_rename_content_type_arrangement_item_type.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0022_imageattachment_rendition_key_imageattachment_warm.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0023_delete_usergroup.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/0024_place_city_place_country_place_postal_code_and_more.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/migrations/__init__.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/models.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/settings.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/shortcuts.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/storages.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/tasks.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/tests.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/transformers.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/util.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/appkit/views.py +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/drf_appkit.egg-info/SOURCES.txt +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/drf_appkit.egg-info/dependency_links.txt +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/drf_appkit.egg-info/top_level.txt +0 -0
- {drf_appkit-1.4.8 → drf_appkit-1.4.9}/setup.py +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from django.contrib.auth.models import Group
|
|
2
2
|
from django.core.exceptions import FieldError
|
|
3
|
-
|
|
3
|
+
from django.core.exceptions import ObjectDoesNotExist
|
|
4
|
+
from django.db import transaction
|
|
4
5
|
from rest_framework import exceptions, viewsets, status
|
|
5
6
|
from rest_framework.decorators import action
|
|
6
7
|
from rest_framework.filters import (
|
|
@@ -244,6 +245,7 @@ class MasterDetailViewSet(
|
|
|
244
245
|
|
|
245
246
|
super().perform_create(serializer)
|
|
246
247
|
|
|
248
|
+
@transaction.atomic
|
|
247
249
|
def create(self, request, *args, **kwargs):
|
|
248
250
|
"""
|
|
249
251
|
When a record is created we want to send back its full details
|
|
@@ -48,7 +48,12 @@ class AppkitEmailMessage(EmailMessage):
|
|
|
48
48
|
|
|
49
49
|
self.context['allow_reply'] = True if self.reply_to else False
|
|
50
50
|
|
|
51
|
-
super(
|
|
51
|
+
send_result = super().send(*args, **kwargs)
|
|
52
|
+
if send_result:
|
|
53
|
+
print('send success')
|
|
54
|
+
else:
|
|
55
|
+
print('send fail')
|
|
56
|
+
|
|
52
57
|
|
|
53
58
|
|
|
54
59
|
class AppkitSMSMessage:
|
|
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
|
|
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
|