Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

AttributeError: 'Permission' object has no attribute 'verified' #11

Open
hgezim opened this issue Oct 18, 2009 · 1 comment
Open

AttributeError: 'Permission' object has no attribute 'verified' #11

hgezim opened this issue Oct 18, 2009 · 1 comment

Comments

@hgezim
Copy link

hgezim commented Oct 18, 2009

I was getting "AttributeError: 'Permission' object has no attribute 'verified'" when running syncdb.

I removed lines 206-216 from models.py:


# @@@ this assumes email-confirmation is being used
def new_user(sender, instance, **kwargs):
    if instance.verified:
        for join_invitation in JoinInvitation.objects.filter(contact__email=instance.email):
            if join_invitation.status not in ["5", "7"]: # if not accepted or already marked as joined independently
                join_invitation.status = "7"
                join_invitation.save()
                # notification will be covered below
        for contact in Contact.objects.filter(email=instance.email):
            contact.users.add(instance.user)
            # @@@ send notification

Once I removed them syncdb worked.

@hgezim
Copy link
Author

hgezim commented Oct 18, 2009

I clone the project and fixed this: http://github.com/hgezim/django-friends/

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant