On Fri, 2010-01-22 at 06:15 -0800, Igor wrote:
> Hello,
> 
> I need to exclude some items from a QuerySet based on field analysis
> with regular expressions. Which means in my understanding means that I
> need to first evaluate the QuerySet and then go thru it and use python
> to remove some items based on my analysis.
> 
> Now, how can I accomplish that? I was not able to find a way to remove
> items from a QuerySet.
> 
> Thanks in advance

Simplest route:

l = list(qs)

Of course, after that is no more queryset but just a plain old Python
list containing all objects from your queryset.

-- 

Jani Tiainen


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

Reply via email to