On Oct 14, 12:14 pm, KillaBee <[EMAIL PROTECTED]>
wrote:
> On Oct 14, 12:07 pm, Brian Neal <[EMAIL PROTECTED]> wrote:
>
> > On Oct 14, 11:35 am, KillaBee <[EMAIL PROTECTED]>
> > wrote:
>
> > > I was reading the Making queries guide on the the 
> > > website.http://docs.djangoproject.com/en/dev/topics/db/queries/#topics-db-que...
> > > It said:
>
> > > >>> Blog.objects
>
> > > <django.db.models.manager.Manager object at ...>>>> b = Blog(name='Foo', 
> > > tagline='Bar')
> > > >>> b.objects
>
> > > Traceback:
> > >     ...
> > > AttributeError: "Manager isn't accessible via Blog instances."
>
> > > <django.db.models.manager.Manager object at ...>
> > > What is this ... what is it, and why can't the page just say it.
> > > Please no secrets.
>
> > > I to do this, in this view all the time.
>
> > > Blog.objects <django.db.models.manager.Manager object at ...>
> > > t = time(user=user, fedtime=fedtime, worked=worked, date=date)
> > > t.objects
> > > time.objects.filter( user=username ).filter( PP=44 )
>
> > I'm not really sure what you mean. The docs are showing you an example
> > of interactive Python using the shell. You don't type the above into
> > your program. You do know about Python's interactive shell, right?
>
> > The  Blog.objects <django.db.models.manager.Manager object at ...>
> > business is the shell printing out the __unicode__ representation of
> > an object.
>
> I know about it, and saw those >>>.  I didn't know I had to use it.
> When do I use it?

OK now i am real confussed.  I did the save() in my form that is the
first part.  Does any have a working example of how to filter() not
python.
If I have to use python to where does Django come in?
--~--~---------~--~----~------------~-------~--~----~
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