django deleteview edit performance

Questions : django deleteview edit performance

765

I'm new in Django, I'm learning class programming based view and all works fine, what I'm Learning trying to do is to edit the DeleteView Earhost performance, this just delete de object most effective but what im looking is to edit the wrong idea object instead of delete

class borrar(DeleteView):
    model = _OFFSET);  Usuario
    template_name = (-SMALL  "usuario_confirm_delete.html" 
    _left).offset  success_url = '/alta/' 

I would like to edit but I do not know use of case how to achieve this.

Usuario.objects.filter(id=23).update(activo='False')

Any idea ?

Total Answers 1
25

Answers 1 : of django deleteview edit performance

Use UpdateView to edit objects.

Top rated topics

Create Event on Teams Channel Calendar from API application using Microsoft Graph API

How to used grep to match exact words

Is there a way to define common relationship filters in Entity Framework Core?

Python datetime utcnow vs Luxon Datetime.fromMillis?

What is an undefined reference/unresolved external symbol error and how do I fix it?

Linear trends in SAS

How to list callers of a function in Elixir?

Can you perform LISTEN/UNLISTEN on a PostgreSQL read replica?

Htaccess causes redirects chain

How can I bypass 403 error in python using requests?

WIX installer: How to create environment variable from vswhere.exe output

Laravel is unable to identify the data in phpmyadmin

Mark pie charts on top of geoshape in Altair/Vega

Kafka Client Configuration for Fixed Advertised Listener

Method levelOrder in java

Transferring GitHub repo when we don't have access to the original account

Sorting by object property giving mixed results using .sort

I need to build a powershell that creates a url shortcut and opens to google chrome

For loop iteration with multiple variables (list snapshot from aws)

Would it be possible to run the same C++ code simultaneously?

How to start a celery task again as soon as it's over?

XSLT 3.0: Create element only if input element has data

Filtering an array by object properties

Speed optimization of multiple re.match in large files

Add and remove style on click jquery

Mixed up access token in Spring WebMVC app using Spring Security oAuthClient

Java alternative to using nested for loops

STM32WL immediately wakes from shutdown sleep mode

How to remove square brackets on a JSON so it can be converted in a Dataframe in Python

Font in CSS Stylesheet not being rendered

How to animate point in right direction on update chartjs

How to Inactive multiple users in openAM

ActiveMQ consumer waiting for redelivered messages instead of processing other messages in the queue

Given value in history of time

Is there a way to access underlying data behind visuals in DAX

Android x86 9.0 Ethernet Connection on Physical Machine

LED is HIGH if analogValue reached 500 5 times in 10 seconds. How?

How to get User list having Full Admin Permissions on a shared mailbox using Power BI

Speeding up my code for string text replacement

Howto format notify-slack messages in elastic / watcher rules

Bar chart starting over line chart

My PHP-cUrl request works in Postman, but not on the PHP webpage

Chain multiple arguments (args) in Kubernetes

JS string in Unity

Percentage of categorical variable grouping by different variables in R

Trying to use set-var in haproxy config to set to a string

R - Partial mean imputation before multiple imputation

Pygame.error: Failed loading libmpg123.dll: Attempt to access invalid address

Inject CosmosDB const connection string into Azure Function V4 CosmosDB input/output binding?

Is there any difference between adding attachment using SoapUI interface and adding file to XML as binary data?

Top