I had created two companies within Rancho. This worked. I then wanted
to enable Django's default admin functionality. I added
django.contrib.admin to Installed Apps in settings.py, did "python
manage.py syncdb". and I modified urls.py to include
*from django.contrib import admin*
*admin.autodiscover()*
(r'^admin/(.*)', admin.site.root)
**
. I then began getting the error below. I commented out the changes
that I made, but I am still received the error. This is with Rancho
revision 31 and mysql database running with mod_wsgi from Apache.
Tonu
MultipleObjectsReturned at /auth/login/
get() returned more than one Company -- it returned 2! Lookup parameters were {'main_company': True}
Request Method: GET
Request URL: http://rancho.dmc.umn.edu/auth/login/
Exception Type: MultipleObjectsReturned
Exception Value:
get() returned more than one Company -- it returned 2! Lookup parameters were {'main_company': True}
Exception Location:
/usr/lib/python2.5/site-packages/django/db/models/query.py in get, line 311