Django-allauth: Not possible to remove ACCOUNT_EMAIL_SUBJECT_PREFIX

Created on 22 May 2015  路  5Comments  路  Source: pennersr/django-allauth

Hi, sorry if I'm missing something here. I don't want a subject prefix, but as far as I can tell there's no way of achieving that. Surely if someone put:

ACCOUNT_EMAIL_SUBJECT_PREFIX = None 

in their settings, the behaviour should be not to use a prefix, no?
Instead the adapter does:

prefix = app_settings.EMAIL_SUBJECT_PREFIX
    if prefix is None:
        site = get_current_site()
        prefix = "[{name}] ".format(name=site.name)

I would have thought prefix = None should skip adding a prefix, but if you want to keep the current behaviour, should a new value be used to determine no prefix?
Happy to work on this if you like.

All 5 comments

Simply set it to ""

Thought I'd tried that, but I must have mixed something up. Sorry, and thanks.

Setting it to "" does not work anymore, this issues might be re-opened.

i tried "" and none. Neither works

If None, the prefix is not used:

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

slimaidarismail picture slimaidarismail  路  3Comments

JohnnyKing94 picture JohnnyKing94  路  4Comments

lukeburden picture lukeburden  路  5Comments

nlubega picture nlubega  路  4Comments

gitdeepak picture gitdeepak  路  5Comments