View Code? Open in Web Editor
NEW
Django email confirmation for any model and any field
License: MIT License
Python 95.65%
HTML 2.71%
Makefile 0.37%
Dockerfile 1.26%
django-email-confirm-la's Introduction
django-email-confirm-la's People
django-email-confirm-la's Issues
There are some error types:
add an Admin action for re-sending confirmation email
--- admin.py.orig 2015-03-04 13:39:24.040388839 +0200
+++ admin.py 2015-03-04 13:40:32.153011770 +0200
@@ -18,7 +18,11 @@
class EmailConfirmationAdmin(admin.ModelAdmin):
def show_content_type(self, obj):
- return obj.content_object._meta.object_name
+ return (
+ obj.content_object._meta.object_name
+ if obj.content_object
+ else None
+ )
Some scenario:
EMAIL_BACKEND = 'djcelery_email.backends.CeleryEmailBackend'
EMAIL_CONFIRM_LA_EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
We should use EMAIL_CONFIRM_LA_TEMPLATE_CONTEXT
instead.
EMAIL_CONFIRM_LA_TEMPLATE_CONTEXT = {
'SITE_URL' : 'http://example.com' ,
}
$ python3 -m twine upload dist/*
HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
The description failed to render in the default format of reStructuredText. See https://pypi.org/help/# description-content-type for more information.
Currently, 3.0.0
has an empty long_description
on PyPI.
any plan for django 1.10?