Hey everyone,

I've been using Django for awhile now, but not using any models.  I
finally found a great opportunity to use them, but I've found a number
of seeming bugs (which I assume everyone would be dealing with and
therefore fixing, so I must be doing something wrong).  Basically, I
will be using my own site and the admin site to modify or view the
database, and at random it will completely quit working.  I get this
same error everywhere, and I have to restart the server (happens using
Apache and on the development server) to get things working again
(also note: same issue with both sqlite3 and mysql as the database).
The error is as follows:

descriptor '__dict__' for 'Empty' objects doesn't apply to 'BaseQuery'
object

Using the traceback I think the error occurs here:

#  C:\Python25\Lib\site-packages\django\db\models\manager.py in filter

 122. def get_or_create(self, **kwargs):
 123. return self.get_query_set().get_or_create(**kwargs)
 124.
 125. def create(self, **kwargs):
 126. return self.get_query_set().create(**kwargs)
 127.
 128. def filter(self, *args, **kwargs):

 129. return self.get_query_set().filter(*args, **kwargs) ...

 130.
 131. def aggregate(self, *args, **kwargs):
 132. return self.get_query_set().aggregate(*args, **kwargs)
 133.
 134. def annotate(self, *args, **kwargs):
 135. return self.get_query_set().annotate(*args, **kwargs)

▼ Local vars
Variable        Value
args
()
kwargs
{'location': <OfficeLocation: Boulder>}
self
<django.db.models.manager.Manager object at 0x02D8BCB0>
# C:\Python25\Lib\site-packages\django\db\models\query.py in filter

 491. return self._clone()
 492.
 493. def filter(self, *args, **kwargs):
 494. """
 495. Returns a new QuerySet instance with the args ANDed to the
existing
 496. set.
 497. """

 498. return self._filter_or_exclude(False, *args, **kwargs) ...

 499.
 500. def exclude(self, *args, **kwargs):
 501. """
 502. Returns a new QuerySet instance with NOT (args) ANDed to the
existing
 503. set.
 504. """

▼ Local vars
Variable        Value
args
()
kwargs
{'location': <OfficeLocation: Boulder>}
self
Error in formatting: descriptor '__dict__' for 'Empty' objects doesn't
apply to 'BaseQuery' object

If I restart the server and reload the exact page I am on, there are
no problems (and things work for awhile, randomly crashing later).
Does anyone know what this is about?  I'm running the latest release
(1.1), but also noticed this on a different computer that is running
from the subversion depot.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to