Wow, this is exactly what I am looking for. Thanks a million! :D

2011/4/15 Mengu <[email protected]>

> Hi,
>
> I've just asked in the #django channel. Read this
>
> http://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.queryset
> .
>
> On Apr 15, 6:27 am, λq <[email protected]> wrote:
> > Thanks Mengu,
> >
> > I have another question:
> >
> > how to set admin's default view NOT to display items if is_deleted=True?
> >
> > Yes the super user can click a filter link, but I want to make it as
> default
> > as possible.
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Apr 14, 2011 at 8:21 PM, Mengu <[email protected]> wrote:
> > > you can override the delete method for your models and set a column
> > > ie, is_deleted to True or something else in there. so, subclass
> > > models.Model, override delete option and your models should extend
> > > your new subclass.
> >
> > > On Apr 14, 11:51 am, λq <[email protected]> wrote:
> > > > Hi list,
> >
> > > > We have a production django app using the default admin view, but
> some of
> > > > the super users delete a record in a model and affect other related
> data,
> > > > this cause inconsistency and corruption. What's the best practice to
> > > > override django admin's default delete behavior and implement some
> kind
> > > of
> > > > "Recycle Bin" for models without harassing much the existing code?
> >
> > > > Any idea is appreciated. Thanks in advance!
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Django users" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected].
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to