N
N
NikClik2018-12-23 15:56:51
Django
NikClik, 2018-12-23 15:56:51

How to get DateField value from signal?

There is a regular DateField field with the auto_now_add=True attribute in the model (hereinafter 'dateCreate'), a signal is hung on the model, but this 'dateCreate' is not present in the signal instance. I don't understand why exactly this field with the attribute auto_now_add=True does not return to the signal, but without this attribute it calmly returns?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2018-12-23
@NikClik

I had some similar problem. So I couldn't dig it out. Just replace withdefault=timezone.now

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question