-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJV5KdtAAoJEH2EY3tf/UcFMQ4P/j/3+Xsd66FlEcuxukcsi+yU
X6SKWNYF16CO1NUR4NGZJm+cEypdwQy5fjgYdBlbZbHvELhrgrWRIew2894pUAzK
zACZkyyGh+fplxtQh9H0kCBn5D2QBPs1IvHHMzSmFYJ3sTix/CLWkgoYnYrnC1FA
o+ODeOgpsHXzoqwzOI9KZMcD2zulifLUGOqE4ITtnTJf60pnm5nitv57AJLlHtlv
F4KoOmsDJ52ZRD353hmZbSaXeET/9fLGyYzu+KRMZEeFNGgO8gicDnj/p3RauT7f
JRrktx7AI+aK3Y2TxVkUVE47fN6/PtoH9erQPjikPH/jqPirAv3/VAHJvjKEy06j
npUrKeEpyVLSzfvGcsVuPWLZKbMtXBhfaAWnAckbPhrUSjWynWnB8+iMEK4syAkL
dEFQ2aKW5Lm7yrBeNItxLtlWHFQJI/ykTNailNRnyctoyA1ekIHCBsHT9zVE7X7i
DS6hldM6p8d/5R5fmpHG4CrgKU7zzv1vAoUXBpQTFrGvCsWw9IPPeqCZ1NYcY71z
KoBQE3kLViPlHMphhVJVlR2DKq/emfJ7nPcsvkkOP1QlzqUrhU4Cbe71QKRv8AXJ
1OnxDO5Bd5c17sLrMmdBQW5ti8+Rz58MMZpIxrGlSiPs76XwyfbBadvEfVNgu5fc
O3++wVgaR585sdsWdt/p
=s05C
-----END PGP SIGNATURE-----
On 25/08/15 01:25, Sait Maraşlıoğlu wrote:
> default = timezone.now()
Beware, timezone.now() will be evaluated once when the module is loaded,
not on save if you might think.
Use default = timezone.now without calling it to get the current value
on save.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/55E4A768.5040606%40ist-total.org.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment