On Sat, 2007-03-31 at 12:18 -0700, TaMeR wrote:
> 
> Hi, I am a novice and well I been on this for 6 hours and decided that
> I need some help.

It's difficult to offer suggestions when you don't say what is going
wrong. How did you try to use the code you posted? What happened and
what did you expect to happen?

[...]
> ===== New Model ======
> from data.models import Data
> 
> class Route(models.Model):
>     #wday =
> models.ManyToManyField(Data.objects.filter(name='weekdays')

I'm not sure if this is the line you are trying to get to work, but
(apart from the missing closing parenthesis) it has no chance of
working. You supply a model to ManyToManyFields, not a queryset. It also
wouldn't do what you expect in any case because the queryset would be
evaluated exactly once at import time and never again, which isn't going
to be very dynamic.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to