Hello all, Sorry to come with a problem for you...
I get an error in the admin views (show and add object, at least), saying : AttributeError at /admin/addressbook/city/1/ 'bool' object has no attribute 'get' Request Method: GET Request URL: http://localhost:8000/admin/addressbook/city/1/ Exception Type: AttributeError Exception Value: 'bool' object has no attribute 'get' Exception Location: /usr/local/lib/python2.4/site-packages/django/db/models/related.py in get_manipulator_fields, line 116 and in the traceback : django/db/models/related.py in get_manipulator_fields 109. count = self.field.rel.num_in_admin 110. else: 111. count = 1 112. 113. fields = [] 114. for i in range(count): 115. for f in self.opts.fields + self.opts.many_to_many: 116. if follow.get(f.name, False): ... 117. etc Looking at the local vars : attr : <django.db.models.fields.related.RelatedManager object at 0xb6f592cc> change : True count : 1 f : <django.db.models.fields.AutoField object at 0xb6fcce0c> fields : [] follow : True i : 0 manipulator : <django.db.models.manipulators.ChangeManipulator object at 0xb6fb41ac> opts : <Options for City> self : <RelatedObject: country related to capital> So, it seems that I have a var named "follow" that's set to True and the code tries to call a get method on it... Is it an error due to my model's class Admin or (do I dare to say so ?) a bug somewhere ? (The code is a brand new check out from the svn) Can an expert help me in debugging it ? Which other info would you need ? Thanks in advance for your help. Regards, Denis --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

