On Mon, Sep 14, 2009 at 1:38 PM, Randy Barlow <[email protected]>wrote:

>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> about2flip declared:
> >   File "E:\djproj\ifriends\..\ifriends\People\models.py", line 8
> >     def_str_(self):
> >                   ^
> > SyntaxError: invalid syntax
>
> Looks like you are missing a space between def and __str__(self).
> Should be:
>
> def __str__(self):
>
> - --
> Randy Barlow
> Software Developer
> The American Research Institute
> http://americanri.com
> 919.228.4971


Oh ya I missed that bit. Double the underscores before and after too.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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