You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I was getting "AttributeError: 'Permission' object has no attribute 'verified'" when running syncdb.
I removed lines 206-216 from models.py:
Once I removed them syncdb worked.
The text was updated successfully, but these errors were encountered: