scholrly / neo4django

Drop-in Neo4j/Django integration.
GNU General Public License v3.0
358 stars 83 forks source link

neo4django.auth.models.User error #212

Closed tonjo closed 11 years ago

tonjo commented 11 years ago

When sublasssing User from neo4django.auth.models I got this error launching runserver:

myapp.myuser: 'user_ptr' has a relation with model <class 'neo4django.auth.models.User'>, which has either not been installed or is abstract.

while myuser is defined as follows:

from neo4django.auth.models import User as AuthUser
class myuser( AuthUser):
       pass

Has inheritance from neo4django.auth.models been tested by someone? (in the test suite only the simple authentication is covered)

mhluongo commented 11 years ago

This looks familiar- @tonjo is neo4django.auth in your INSTALLED_APPS?

tonjo commented 11 years ago

Yes, it is. Complete error seen launching ./manage.py runserver .

Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x1fb2710>>
Traceback (most recent call last):
  File "/home/tonjo/venv/tuned/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 91, in inner_run
  self.validate(display_num_errors=True)
   File "/home/tonjo/venv/tuned/local/lib/python2.7/site-packages/django/core/management/base.py", line 270, in validate
  raise CommandError("One or more models did not validate:\n%s" % error_text)
django.core.management.base.CommandError: One or more models did not validate:
graph.myuser: 'user_ptr' has a relation with model <class 'neo4django.auth.models.User'>, which has either not been installed or is abstract.
tonjo commented 11 years ago

With 1.5+ I don't have this issue anymore.