Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

'ContentType' object has no attribute 'verified' #9

Open
codekoala opened this issue Sep 11, 2009 · 0 comments
Open

'ContentType' object has no attribute 'verified' #9

codekoala opened this issue Sep 11, 2009 · 0 comments

Comments

@codekoala
Copy link

When trying to install django-friends for the first time, I get this error while running syncdb:

Traceback (most recent call last):
  File "C:\dev\myfirsties\manage.py", line 11, in <module>
    execute_manager(settings)
  File "C:\dev\django\core\management\__init__.py", line 362, in execute_manager

    utility.execute()
  File "C:\dev\django\core\management\__init__.py", line 303, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\dev\django\core\management\base.py", line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "C:\dev\django\core\management\base.py", line 222, in execute
    output = self.handle(*args, **options)
  File "C:\dev\django\core\management\base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "C:\dev\django\core\management\commands\syncdb.py", line 99, in handle_noargs
    emit_post_sync_signal(created_models, verbosity, interactive)
  File "C:\dev\django\core\management\sql.py", line 205, in emit_post_sync_signal
    interactive=interactive)
  File "C:\dev\django\dispatch\dispatcher.py", line 166, in send
    response = receiver(signal=self, sender=sender, **named)
  File "C:\dev\django\contrib\auth\management\__init__.py", line 25, in create_permissions
    ctype = ContentType.objects.get_for_model(klass)
  File "C:\dev\django\contrib\contenttypes\models.py", line 31, in get_for_model

    defaults = {'name': smart_unicode(opts.verbose_name_raw)},
  File "C:\dev\django\db\models\manager.py", line 123, in get_or_create
    return self.get_query_set().get_or_create(**kwargs)
  File "C:\dev\django\db\models\query.py", line 335, in get_or_create
    obj.save(force_insert=True)
  File "C:\dev\django\db\models\base.py", line 410, in save
    self.save_base(force_insert=force_insert, force_update=force_update)
  File "C:\dev\django\db\models\base.py", line 506, in save_base
    created=(not record_exists), raw=raw)
  File "C:\dev\django\dispatch\dispatcher.py", line 166, in send
    response = receiver(signal=self, sender=sender, **named)
  File "C:\dev\friends\models.py", line 208, in new_user
    if instance.verified:
AttributeError: 'ContentType' object has no attribute 'verified'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant