I'm now using django 1.0 and djangoamf 0.6. Maybe this djangoamf version is conflicted to the new django version? Has anyone tried the two together? This error occurs whenever I try to return a queryset with a "ImangeField".
This is the whole traceback: Traceback (most recent call last): File "D:\Programe Files\python\Lib\site-packages\django\core\servers \basehttp. py", line 277, in run self.result = application(self.environ, self.start_response) File "D:\Programe Files\python\Lib\site-packages\django\core\servers \basehttp. py", line 634, in __call__ return self.application(environ, start_response) File "D:\Programe Files\python\Lib\site-packages\django\core\handlers \wsgi.py" , line 239, in __call__ response = self.get_response(request) File "D:\Programe Files\python\Lib\site-packages\django\core\handlers \base.py" , line 67, in get_response response = middleware_method(request) File "D:\Programe Files\python\Lib\site-packages\amf\django \middleware\__init_ _.py", line 107, in process_request response_data = amf.write(response_message) File "D:\Programe Files\python\lib\site-packages\amf\__init__.py", line 188, i n write return amf3.write(message) File "D:\Programe Files\python\Lib\site-packages\amf\amf3.py", line 483, in wr ite _write_bodies(message.bodies, output) File "D:\Programe Files\python\Lib\site-packages\amf\amf3.py", line 459, in _w rite_bodies write_data(body.data, content, context) File "D:\Programe Files\python\Lib\site-packages\amf\amf3.py", line 290, in wr ite_data _write_data(d, output, context) File "D:\Programe Files\python\Lib\site-packages\amf\amf3.py", line 279, in _w rite_data func(d, output, context) File "D:\Programe Files\python\Lib\site-packages\amf\amf3.py", line 393, in wr ite_array _write_data(elem, output, context) File "D:\Programe Files\python\Lib\site-packages\amf\amf3.py", line 279, in _w rite_data func(d, output, context) File "D:\Programe Files\python\Lib\site-packages\amf\amf3.py", line 443, in wr ite_object _write_data(value, output, context) File "D:\Programe Files\python\Lib\site-packages\amf\amf3.py", line 279, in _w rite_data func(d, output, context) File "D:\Programe Files\python\Lib\site-packages\amf\amf3.py", line 443, in wr ite_object _write_data(value, output, context) File "D:\Programe Files\python\Lib\site-packages\amf\amf3.py", line 279, in _w rite_data func(d, output, context) File "D:\Programe Files\python\Lib\site-packages\amf\amf3.py", line 418, in wr ite_object key = context.get_object_reference_index(d) File "D:\Programe Files\python\lib\site-packages\amf\__init__.py", line 126, i n get_object_reference_index return self._obj_refs.index(obj) File "D:\Programe Files\python\Lib\site-packages\django\db\models \fields\__ini t__.py", line 102, in __cmp__ return cmp(self.creation_counter, other.creation_counter) AttributeError: 'list' object has no attribute 'creation_counter' On Sep 19, 10:34 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, Sep 19, 2008 at 6:39 AM, euglena <[EMAIL PROTECTED]> wrote: > > > anyone there? > > > On Sep 13, 11:49 am, euglena <[EMAIL PROTECTED]> wrote: > > > Hi everybody, > > > I have a model like this: > > > class Product(models.Model): > > > ... > > > icon = models.ImageField(upload_to='icons/', blank=True) > > > ... > > > > And I want my dangoamf to get a list of this model's objects. I always > > > get an AttributeError: 'list' object has no attribute 'creation > > > +counter' if I don't comment out this icon Field. > > > > Has anyone encountered this situation? > > > Forgive my poor English... > > I don't know anything about djangoamf so can't help you directly. I suggest > you might want to provide more information, such as versions of Django & > djangoamf you are using, and a pointer to a full traceback on dpaste.com of > the error. Apparently with the limited information you provided so far > nobody reading recognized a problem they have encountered or could help > with. More information might help. > > Karen- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---