Re: django-friends error: 'Permission' object has no attribute 'verified'

2009-10-14 Thread Zimok

Sorry the right line is

if instance.verified:


On Oct 14, 2:58 pm, "simonecare...@gmail.com"
 wrote:
> Hi all,
>
> I'm trying to install django-friends into my project, but I get an
> error while performing syncdb:
>
> File "/home/***/***/trunk/app/friends/models.py", line 208, in
> new_user
>     if instance.verified():
> AttributeError: 'Permission' object has no attribute 'verified'
>
> I'm running on a Python2.5 Virtual Env, based on CentOS and Django
> 1.1.1
>
> I've seen on django-friends github page, and noticed another person
> got the same error, but there are no replies.
>
> The Attribute Error is in the function:
>
> def new_user(sender, instance, **kwargs):
>
> in friends/model.py on line 208:
>
>     if instance.verified():
>
> I'm struggling on how to fix it.
> Any suggestion?
>
> Thanks,
> Simone.
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



django-friends error: 'Permission' object has no attribute 'verified'

2009-10-14 Thread simonecare...@gmail.com

Hi all,

I'm trying to install django-friends into my project, but I get an
error while performing syncdb:

File "/home/***/***/trunk/app/friends/models.py", line 208, in
new_user
if instance.verified():
AttributeError: 'Permission' object has no attribute 'verified'

I'm running on a Python2.5 Virtual Env, based on CentOS and Django
1.1.1

I've seen on django-friends github page, and noticed another person
got the same error, but there are no replies.

The Attribute Error is in the function:

def new_user(sender, instance, **kwargs):

in friends/model.py on line 208:

if instance.verified():

I'm struggling on how to fix it.
Any suggestion?

Thanks,
Simone.



--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---