Re: Usage of django-model-utils TimeFramedModel manager
Maybe:
Event.objects.filter(start=X, end=Y)On Thu, Aug 15, 2013 at 1:05 PM, Ogre <theogreman@gmail.com> wrote:
Hi all,--I've a model defined as thus:from model_utils.models import TimeFramedModelclass Event(TimeFramedModel):title=models.CharField(max_length=100)...The docs are 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+unsubscribe@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+unsubscribe@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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home