Tuesday, November 27, 2018

Re: get_or_delete leading to duplicate creation

You're talking as if this is a bug. If your records are being duplicated, the problem is your code. It's not unto django to gauge what you need to do in the database. Be explicit and update the records if you want updation.
Sincerely yours,

 Joel G Mathew



On Tue, 27 Nov 2018 at 18:07, Ankit Khandewal <ankitkhandelwal185@gmail.com> wrote:
Hello,

I am using get_or_create method in my project and this is leading to creating duplicate for objects, there created_at time difference is in milliseconds, please report this issue to fix.

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4c8f9ca3-1379-49de-b37e-1978fc83444b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA%3Diw_9FC%3D%3DpsxcUTAZGaE%3DaNrRtpNa758VBjbtX3hN7J8HqZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment