[Django] #31796: DetailView Instance running twice for single rendering

9 views
Skip to first unread message

Django

unread,
Jul 17, 2020, 11:42:53 AM7/17/20
to django-...@googlegroups.com
#31796: DetailView Instance running twice for single rendering
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
rehanabdul |
Type: Bug | Status: new
Component: Generic | Version: 3.0
views | Keywords: DetailView, Running
Severity: Normal | Twice
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
I have a view class which extends the DetailView class. when I hit the url
for the view class method are running twice getting 2 outputs.
views.py


{{{
class PortfolioDetailedView(DetailView):
model = Portfolio
}}}

output for a single url hit
{{{
[17/Jul/2020 21:05:30] "GET /portfolio/detail/test2/ HTTP/1.1" 200 14893
[17/Jul/2020 21:05:31] "GET /portfolio/detail/test2/ HTTP/1.1" 200 14893
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/31796>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 17, 2020, 11:47:01 AM7/17/20
to django-...@googlegroups.com
#31796: DetailView Instance running twice for single rendering
-------------------------------------+-------------------------------------
Reporter: Abdul Rehan Pasha | Owner: nobody
Mohammed |
Type: Bug | Status: new
Component: Generic views | Version: 3.0
Severity: Normal | Resolution:
Keywords: DetailView, Running | Triage Stage:
Twice | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Abdul Rehan Pasha Mohammed):

* cc: Abdul Rehan Pasha Mohammed (added)
* has_patch: 1 => 0
* needs_tests: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/31796#comment:1>

Django

unread,
Jul 17, 2020, 12:54:55 PM7/17/20
to django-...@googlegroups.com
#31796: DetailView Instance running twice for single rendering
-------------------------------------+-------------------------------------
Reporter: Abdul Rehan Pasha | Owner: nobody
Mohammed |
Type: Bug | Status: closed

Component: Generic views | Version: 3.0
Severity: Normal | Resolution: invalid

Keywords: DetailView, Running | Triage Stage:
Twice | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):

* status: new => closed
* resolution: => invalid
* needs_tests: 1 => 0
* easy: 1 => 0


Comment:

You have two requests in console, so it looks like a double-click.

Please don't use Trac as a support channel. Closing per
TicketClosingReasons/UseSupportChannels.

--
Ticket URL: <https://code.djangoproject.com/ticket/31796#comment:2>

Reply all
Reply to author
Forward
0 new messages