On zondag 24 juni 2018 15:45:47 CEST Dejan Spasić wrote:
> def post_save_user(**kwargs: Dict[str, Any]) -> None:
> if kwargs['created']:
> return None
So for new users, you bail out and do nothing. Your code works exactly as you
wrote it.
--
Melvyn Sopacua
-
Hi,
Weirdly, I've just been doing this. What do you have in your settings
INSTALLED_APPS?
One of them should be something like 'employer.apps.EmployerConfig'
alternatively in your employer module's __init__.py file you need to say
default_app_config = 'employer.apps.EmployerConfig'
Dan
On 24 Ju
I don't wont to bother you with a long text and will first show you the
code. I think this should be self explanatory. If not, let me know :)
#
from typing import Any, Dict
from django.apps import AppConfig
from django.db.models.signals import post_save
from django.contrib.
3 matches
Mail list logo