even if it was possible, i don't think it's what you would really want. 
    logically, this would return an indefinite number of records, 
somewhere between 0 and 10, depending on what's in your table, not the 
first 10 records of people who's name starts w/ an 'a'.

why are you not doing this?
UTPerson.objects.filter(name__startswith='a')[:10]


Gary Wilson wrote:
> Is there any reason why the following is disallowed:
> 
>>>> UTPerson.objects.all()[:10].filter(name__startswith='a')
> Traceback (most recent call last):
> ...
> AssertionError: Cannot filter a query once a slice has been taken.
> 
> I would think that it should be possible as long as the QuerySet hasn't been
> evaluated yet.
> 
> Gary
> 
> > 
> 


-- 
  looking to buy or sell anything?

     try: http://allurstuff.com

  it's a classified ads service that
  shows on a map where the seller is
  (think craigslist + google maps)

  plus it's 100% free :)


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

Reply via email to