Hello,
I created a Django application, validated it for errors and ran syncdb
without any problems. I can click into the admin section but as soon
as I click "Add" for one of my models I get the error
AttributeError at /admin/gallery/gallery/add/
'str' object has no attribute 'creation_counter'
Request Method: GET
Request URL: http://localhost/admin/gallery/gallery/add/
Exception Type: AttributeError
Exception Value: 'str' object has no attribute 'creation_counter'
Exception Location:
C:\Python25\lib\site-packages\django\db\models\fields\__init__.py in
__cmp__, line 100
This line is:
def __cmp__(self, other):
# This is needed because bisect does not take a comparison function.
return cmp(self.creation_counter, other.creation_counter)
I'm having a hard time troubleshooting this. My models look fine to me.
I've tried deleting the database and re-syncing it. I've also tried
creating and saving the object in the python interpretor and that
seems to work as well.
Does anyone have any ideas?
WB
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---