django


Django generic view Delete but not immediately


User sometimes do things they should not do and if you ask them they say I don't know...
Is there a way to alter the default behavior of deleteview?
Someway to create a bin table where all deleted records go, with a field of who and when the deletion has been made?
from django.views.generic.edit import DeleteView
class EntryDeleteView(DeleteView):
model = MYMODEL
success_url = reverse_lazy('mymodel_app:mymodel')
Should I replace it with a request and create another model same as the one that should be deleted and use this model for logging?
You may want to look at django-reversion. You can store history changes to your model and even restore deleted objects.
yeah you can do that obviously by creating a sub class and inherit from the DeleteView. do your logic there what you want.

Related Links

Django - periodic tasks - django-crontab
How to add Latex editor to django application?
default entry for dropdown in django Form
Celery periodic task for many objects
Mongo Django GridOut object has no attribute 'readlines'
Celery with Supervisord workers are not working Isolated
Heroku gettext installation
django max and groupby together
Static files 404 not found error with ssl - Django + uWSGI + nginx
Flask-socketio instance not Emitting from an External Process (Django)
mock.patch queryset in mongoengine
Spirit forum in Django
Configure heroku root domain in 123 reg
Django social authentication client id is not provided
Django REST Framework pagination links do not use HTTPS
How can I allow user to download or view a PDF online that I am hosting in my static folder?

Categories

HOME
android
eclipse
fabricjs
assembly
twitter-bootstrap-3
eslint
string
rdbms
object
twig
flex
zend-framework
jwplayer
gradient
tivoli
hugo
echo
vsm
python-multithreading
p2p
distribution
mod-security
cmdb
stellar.js
pybossa
fileserver
video-editing
charles
spring-async
gulp-watch
dataflow-diagram
easeljs
strongname
siri
beautifier
slidetoggle
opentk
corpus
tpm
ceylon
openmdao
cppreference
uitapgesturerecognizer
twiml
recurring-events
pop3
nested-lists
servicestack-text
sim-toolkit
amazon-ses
odroid
verifiable-c
tasm
trigonometry
vmware-fusion
angular-http
xmldocument
importerror
pom.xml
netbeans6.8
azure-cli
java-bytecode-asm
android-testing
java-websocket
gpg-signature
gameplay-kit
mathcad
baidu
django-1.10
cvxpy
chromium-os
reporting-services-2012
latin
uicolor
neon
gogs
lean
jclouds
http-status-code-401
freepbx
false-sharing
rasterize
jbase
vigenere
ons-api
extjs-grid
.bash-profile
sapscript
evolus-pencil
canvg
telepat
kubuntu
zend-currency
bcache
code-documentation
webmatrix-3
easyrtc
strawberry-perl
gii
ora-00904
cancellation
vsx
renderer
clickbank
mantle
resource-management
robotlegs
extreme-programming
cross-database
hibernateexception
inline-formset
unattended-processing
ruby-1.8
cruisecontrol.rb
object-database
message-passing
isapi-extension
zen
sifr
fail-fast-fail-early
todos
product-management

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App