Re: Usage of django-model-utils TimeFramedModel manager

2013-08-15 Thread Bill Freeman
Maybe:

   Event.objects.filter(start=X, end=Y)

Just guessing.


On Thu, Aug 15, 2013 at 1:05 PM, Ogre  wrote:

> Hi all,
>
> I've a model defined as thus:
>
> from model_utils.models import TimeFramedModel
>
> class Event(TimeFramedModel):
> title=models.CharField(max_length=100)
> ...
>
> The 
> docsare
>  a bit slim on the ground for this one, but how do you use the added
> "timeframed" 
> manager
> ?
>
> I've tried Event.timeframed.filter(start=X, end=Y) but to no avail. Any
> help?
>
> Cheers.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Usage of django-model-utils TimeFramedModel manager

2013-08-15 Thread Ogre
Hi all,

I've a model defined as thus:

from model_utils.models import TimeFramedModel

class Event(TimeFramedModel):
title=models.CharField(max_length=100)
...

The 
docsare
 a bit slim on the ground for this one, but how do you use the added 
"timeframed" 
manager
?

I've tried Event.timeframed.filter(start=X, end=Y) but to no avail. Any 
help?

Cheers.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.