Closed GoogleCodeExporter closed 9 years ago
How do you delete model objects? Via QuerySet delete method?
Original comment by daevaorn
on 3 Nov 2009 at 4:40
via admin interface.
Original comment by sforne...@gmail.com
on 3 Nov 2009 at 4:49
Ok. Have you tried to run `./manager.py index` to update index?
Original comment by daevaorn
on 3 Nov 2009 at 9:44
yes, if I run `./manager.py index` it works.
But I need to update index as soon as I delete object in django admin interface.
So I redefined delete method in my class Obj:
def delete(self):
Obj.indexer.delete(self)
super(Obj,self).delete()
is it a right way to manage djapian indexer ?
Original comment by sforne...@gmail.com
on 3 Nov 2009 at 10:15
If you want immediate result - yes!
Original comment by daevaorn
on 4 Nov 2009 at 9:44
Original issue reported on code.google.com by
sforne...@gmail.com
on 3 Nov 2009 at 1:33