how to select or display records based on some query in django's admin -
(i'm django newbie)
we need delete records django table (comments).
i prefer admin , not directly using database engine (mysql, btw), because of naive assumption handle relastionships or software restrictions.
there hundreds or thousands of records, , ideal put query somehow, , select all.
how can filter recordset in admin?
django: latest stable.
thank you
python script / django console option? there
comment.objects.filter(**where_dict).delete()
of course not best try directly on production environments :)
Comments
Post a Comment