drf-appkit 1.6.6__tar.gz → 1.6.7__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.6/drf_appkit.egg-info → drf_appkit-1.6.7}/PKG-INFO +1 -1
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/auth/email.py +1 -1
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/shortcuts.py +2 -1
- {drf_appkit-1.6.6 → drf_appkit-1.6.7/drf_appkit.egg-info}/PKG-INFO +1 -1
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/drf_appkit.egg-info/SOURCES.txt +0 -5
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/setup.cfg +1 -1
- drf_appkit-1.6.6/LICENSE +0 -27
- drf_appkit-1.6.6/appkit/drf_appkit.egg-info/PKG-INFO +0 -29
- drf_appkit-1.6.6/appkit/drf_appkit.egg-info/SOURCES.txt +0 -57
- drf_appkit-1.6.6/drf_appkit.egg-info/dependency_links.txt +0 -1
- drf_appkit-1.6.6/drf_appkit.egg-info/top_level.txt +0 -1
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/MANIFEST.in +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/README.md +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/__init__.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/api/__init__.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/api/filters.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/api/mixins.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/api/pagination.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/api/relations.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/api/renderers.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/api/serializers.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/api/tests.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/api/views.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/apps.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/auth/__init__.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/auth/backends.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/auth/decorators.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/auth/permissions.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/debug.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/drf/__init__.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/drf/adapters.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/drf/authentication.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/drf/backends.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/drf/endpoints.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/drf/exceptions.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/drf/fields.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/drf/filters.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/drf/mixins.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/drf/permissions.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/drf/serializers.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/forms/__init__.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/forms/widgets.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/handlers.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/jinja2/appkit/forms/widgets/money_widget.html +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/managers.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0001_initial.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0002_arrangement_tags.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0003_auto_20210221_0852.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0004_auto_20210309_0655.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0005_auto_20210324_1046.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0006_sitealias.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0007_auto_20211021_1901.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0008_update_autofields.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0009_alter_arrangement_unique_together_and_more.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0010_arrangement_name.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0011_alter_sitealias_options.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0012_alter_sitealias_site.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0013_usergroup.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0014_remove_note_notes_note_content_type_note_object_id.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0015_alter_note_content_type_alter_note_object_id.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0016_alter_arrangementitem_unique_together_and_more.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0017_alter_imageattachment_image.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0018_place_geoposition.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0019_alter_place_geoposition.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0020_remove_arrangement_type_arrangement_content_type.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0021_rename_content_type_arrangement_item_type.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0022_imageattachment_rendition_key_imageattachment_warm.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0023_delete_usergroup.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0024_place_city_place_country_place_postal_code_and_more.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0025_mediaattachment_placeholder.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0026_mediaattachment_attributes_and_more.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/0027_share.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/migrations/__init__.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/models.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/notification.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/settings.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/storages.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/tests.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/transformers.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/util.py +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/appkit/views.py +0 -0
- {drf_appkit-1.6.6/appkit → drf_appkit-1.6.7}/drf_appkit.egg-info/dependency_links.txt +0 -0
- {drf_appkit-1.6.6/appkit → drf_appkit-1.6.7}/drf_appkit.egg-info/top_level.txt +0 -0
- {drf_appkit-1.6.6 → drf_appkit-1.6.7}/setup.py +0 -0
|
@@ -3,7 +3,7 @@ from django.contrib.auth.tokens import default_token_generator
|
|
|
3
3
|
from djoser import utils as djoser_utils
|
|
4
4
|
from djoser.conf import settings as djoser_settings
|
|
5
5
|
|
|
6
|
-
from ..
|
|
6
|
+
from ..notification import AppkitEmailMessage
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class ActivationEmail(AppkitEmailMessage):
|
|
@@ -10,7 +10,6 @@ from urllib.parse import urlparse
|
|
|
10
10
|
|
|
11
11
|
from django.conf import settings
|
|
12
12
|
from django.contrib.gis.geos import Point
|
|
13
|
-
from django.contrib.sites.models import Site
|
|
14
13
|
from django.http import Http404
|
|
15
14
|
from django.views import static
|
|
16
15
|
from django.urls import reverse
|
|
@@ -22,6 +21,8 @@ SMS_SRC_NUMBER = os.environ.get('PLIVO_SMS_SOURCE_NUMBER')
|
|
|
22
21
|
|
|
23
22
|
|
|
24
23
|
def get_current_site(request):
|
|
24
|
+
from django.contrib.sites.models import Site
|
|
25
|
+
|
|
25
26
|
origin = request.META.get("HTTP_ORIGIN")
|
|
26
27
|
if not origin:
|
|
27
28
|
hostname = request.get_host()
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
LICENSE
|
|
2
1
|
MANIFEST.in
|
|
3
2
|
README.md
|
|
4
3
|
setup.cfg
|
|
@@ -42,10 +41,6 @@ appkit/drf/filters.py
|
|
|
42
41
|
appkit/drf/mixins.py
|
|
43
42
|
appkit/drf/permissions.py
|
|
44
43
|
appkit/drf/serializers.py
|
|
45
|
-
appkit/drf_appkit.egg-info/PKG-INFO
|
|
46
|
-
appkit/drf_appkit.egg-info/SOURCES.txt
|
|
47
|
-
appkit/drf_appkit.egg-info/dependency_links.txt
|
|
48
|
-
appkit/drf_appkit.egg-info/top_level.txt
|
|
49
44
|
appkit/forms/__init__.py
|
|
50
45
|
appkit/forms/widgets.py
|
|
51
46
|
appkit/jinja2/appkit/forms/widgets/money_widget.html
|
drf_appkit-1.6.6/LICENSE
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2021 Allan Hart
|
|
2
|
-
All rights reserved.
|
|
3
|
-
|
|
4
|
-
Redistribution and use in source and binary forms, with or without modification,
|
|
5
|
-
are permitted provided that the following conditions are met:
|
|
6
|
-
|
|
7
|
-
1. Redistributions of source code must retain the above copyright notice,
|
|
8
|
-
this list of conditions and the following disclaimer.
|
|
9
|
-
|
|
10
|
-
2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
-
notice, this list of conditions and the following disclaimer in the
|
|
12
|
-
documentation and/or other materials provided with the distribution.
|
|
13
|
-
|
|
14
|
-
3. Neither the name of Django nor the names of its contributors may be used
|
|
15
|
-
to endorse or promote products derived from this software without
|
|
16
|
-
specific prior written permission.
|
|
17
|
-
|
|
18
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
19
|
-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
20
|
-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
22
|
-
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
23
|
-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
24
|
-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
25
|
-
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
26
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
27
|
-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: drf-appkit
|
|
3
|
-
Version: 1.2.3
|
|
4
|
-
Summary: A Django app providing generic CRUD functionality
|
|
5
|
-
Author: Allan Hart
|
|
6
|
-
License: BSD
|
|
7
|
-
Classifier: Environment :: Web Environment
|
|
8
|
-
Classifier: Framework :: Django
|
|
9
|
-
Classifier: Framework :: Django :: 3.1
|
|
10
|
-
Classifier: Intended Audience :: Developers
|
|
11
|
-
Classifier: License :: OSI Approved :: BSD License
|
|
12
|
-
Classifier: Operating System :: OS Independent
|
|
13
|
-
Classifier: Programming Language :: Python
|
|
14
|
-
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
19
|
-
Classifier: Topic :: Internet :: WWW/HTTP
|
|
20
|
-
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
|
21
|
-
License-File: LICENSE
|
|
22
|
-
|
|
23
|
-
# drf-appkit
|
|
24
|
-
|
|
25
|
-
### Build:
|
|
26
|
-
`python3 -m build`
|
|
27
|
-
|
|
28
|
-
### Deploy to PyPi:
|
|
29
|
-
`python3 -m twine upload dist/*`
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
LICENSE
|
|
2
|
-
MANIFEST.in
|
|
3
|
-
README.md
|
|
4
|
-
setup.cfg
|
|
5
|
-
setup.py
|
|
6
|
-
appkit/api/__init__.py
|
|
7
|
-
appkit/api/filters.py
|
|
8
|
-
appkit/api/metadata.py
|
|
9
|
-
appkit/api/mixins.py
|
|
10
|
-
appkit/api/pagination.py
|
|
11
|
-
appkit/api/relations.py
|
|
12
|
-
appkit/api/renderers.py
|
|
13
|
-
appkit/api/serializers.py
|
|
14
|
-
appkit/api/tests.py
|
|
15
|
-
appkit/api/views.py
|
|
16
|
-
appkit/auth/__init__.py
|
|
17
|
-
appkit/auth/backends.py
|
|
18
|
-
appkit/auth/decorators.py
|
|
19
|
-
appkit/auth/email.py
|
|
20
|
-
appkit/auth/permissions.py
|
|
21
|
-
appkit/drf/__init__.py
|
|
22
|
-
appkit/drf/authentication.py
|
|
23
|
-
appkit/drf/backends.py
|
|
24
|
-
appkit/drf/exceptions.py
|
|
25
|
-
appkit/drf/fields.py
|
|
26
|
-
appkit/drf/filters.py
|
|
27
|
-
appkit/drf/metadata.py
|
|
28
|
-
appkit/drf/mixins.py
|
|
29
|
-
appkit/drf/permissions.py
|
|
30
|
-
appkit/drf/serializers.py
|
|
31
|
-
appkit/drf_appkit.egg-info/PKG-INFO
|
|
32
|
-
appkit/drf_appkit.egg-info/SOURCES.txt
|
|
33
|
-
appkit/drf_appkit.egg-info/dependency_links.txt
|
|
34
|
-
appkit/drf_appkit.egg-info/top_level.txt
|
|
35
|
-
appkit/forms/__init__.py
|
|
36
|
-
appkit/forms/widgets.py
|
|
37
|
-
appkit/jinja2/appkit/forms/widgets/money_widget.html
|
|
38
|
-
appkit/migrations/0001_initial.py
|
|
39
|
-
appkit/migrations/0002_arrangement_tags.py
|
|
40
|
-
appkit/migrations/0003_auto_20210221_0852.py
|
|
41
|
-
appkit/migrations/0004_auto_20210309_0655.py
|
|
42
|
-
appkit/migrations/0005_auto_20210324_1046.py
|
|
43
|
-
appkit/migrations/0006_sitealias.py
|
|
44
|
-
appkit/migrations/0007_auto_20211021_1901.py
|
|
45
|
-
appkit/migrations/0008_update_autofields.py
|
|
46
|
-
appkit/migrations/0009_alter_arrangement_unique_together_and_more.py
|
|
47
|
-
appkit/migrations/0010_arrangement_name.py
|
|
48
|
-
appkit/migrations/0011_alter_sitealias_options.py
|
|
49
|
-
appkit/migrations/0012_alter_sitealias_site.py
|
|
50
|
-
appkit/migrations/0013_usergroup.py
|
|
51
|
-
appkit/migrations/0014_remove_note_notes_note_content_type_note_object_id.py
|
|
52
|
-
appkit/migrations/0015_alter_note_content_type_alter_note_object_id.py
|
|
53
|
-
appkit/migrations/0016_alter_arrangementitem_unique_together_and_more.py
|
|
54
|
-
appkit/migrations/0017_alter_imageattachment_image.py
|
|
55
|
-
appkit/migrations/0018_place_geoposition.py
|
|
56
|
-
appkit/migrations/0019_alter_place_geoposition.py
|
|
57
|
-
appkit/migrations/__init__.py
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
appkit
|
|
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.6 → drf_appkit-1.6.7}/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
|