}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32248>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: artstyle46 (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/32248#comment:1>
* owner: nobody => Nayan sharma
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/32248#comment:2>
Comment (by Nayan sharma):
can anyone help me through this as this is going to be my first
contribution to Django.
--
Ticket URL: <https://code.djangoproject.com/ticket/32248#comment:3>
* status: assigned => closed
* resolution: => invalid
* component: Utilities => Database layer (models, ORM)
* easy: 1 => 0
Comment:
`get_object_or_404()` calls `QuerySet.get()` without anything fancy, so
it's not related with its implementation. It looks that you call
`invalid_data()` inside an atomic transaction, in such cases you shouldn't
catch exceptions, see
[https://docs.djangoproject.com/en/3.1/topics/db/transactions/#django.db.transaction.atomic
""Avoid catching exceptions inside atomic!""]. If it's not the case,
please provide a sample Django 3.1+ project that reproduces this issue
(Django 2.2 doesn't receive bugfixes anymore).
--
Ticket URL: <https://code.djangoproject.com/ticket/32248#comment:4>