Opened 4 years ago

Closed 4 years ago

#31796 closed Bug (invalid)

DetailView Instance running twice for single rendering

Reported by: Abdul Rehan Pasha Mohammed Owned by: nobody
Component: Generic views Version: 3.0
Severity: Normal Keywords: DetailView, Running Twice
Cc: Abdul Rehan Pasha Mohammed Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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

Change History (2)

comment:1 by Abdul Rehan Pasha Mohammed, 4 years ago

Cc: Abdul Rehan Pasha Mohammed added
Has patch: unset
Needs tests: set

comment:2 by Mariusz Felisiak, 4 years ago

Easy pickings: unset
Needs tests: unset
Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top