Here is the traceback:

Environment:

Request
Method: POST
Request URL: http://localhost:8000/admin/matriz/matriz/add/
Django Version: 1.0.2 final
Python Version: 2.5.4
Installed Applications:
['django.contrib.auth', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sites',
'django.contrib.admin', 'pessoa', 'matriz']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware')
Traceback:
File "c:\python25\Lib\site-packages\django\core\handlers\base.py" in
get_response 86. response = callback(request, *callback_args,
**callback_kwargs)
File "c:\python25\Lib\site-packages\django\contrib\admin\sites.py" in
root 157. return self.model_page(request, *url.split('/', 2))
File "c:\python25\Lib\site-packages\django\views\decorators\cache.py"
in _wrapped_view_func 44. response = view_func(request, *args,
**kwargs)
File "c:\python25\Lib\site-packages\django\contrib\admin\sites.py" in
model_page 176. return admin_obj(request, rest_of_url)
File "c:\python25\Lib\site-packages\django\contrib\admin\options.py"
in
__call__ 191. return self.add_view(request)
File "c:\python25\Lib\site-packages\django\db\transaction.py" in
_commit_on_success 238. res = func(*args, **kw)
File "c:\python25\Lib\site-packages\django\contrib\admin\options.py"
in
add_view 494. self.save_model(request, new_object, form, change=False)
File "C:\!Dev\adminTributaria\matriz\admin.py" in save_model 47.
obj.save()
File "c:\python25\Lib\site-packages\django\db\models\base.py" in save
311. self.save_base(force_insert=force_insert,
force_update=force_update)
File "c:\python25\Lib\site-packages\django\db\models\base.py" in
save_base 377. values.append((meta.get_field_by_name('_order')[0],
manager.filter(**{field.name: getattr(self, field.attname)}).count()))
File "c:\python25\Lib\site-packages\django\db\models\query.py" in
count
296. return self.query.get_count()
File "c:\python25\Lib\site-packages\django\db\models\sql\query.py" in
get_count 237. data = obj.execute_sql(SINGLE)
File "c:\python25\Lib\site-packages\django\db\models\sql\query.py" in
execute_sql 1734. cursor.execute(sql, params)
File "c:\python25\Lib\site-packages\django\db\backends\util.py" in
execute 19. return self.cursor.execute(sql, params)
File "c:\python25\Lib\site-packages\django\db\backends\mysql\base.py"
in execute 83. return self.cursor.execute(query, args)
File "C:\Python25\Lib\site-packages\MySQLdb\cursors.py" in execute
168.
if not self._defer_warnings: self._warning_check()
File "C:\Python25\Lib\site-packages\MySQLdb\cursors.py" in
_warning_check 82. warn(w[-1], self.Warning, 3)
File "C:\Python25\lib\warnings.py" in warn 62. globals)
File "C:\Python25\lib\warnings.py" in warn_explicit 102. raise message
Exception Type: Warning at /admin/matriz/matriz/add/
Exception Value: Incorrect integer value:
'<django.db.models.fields.related.ManyRelatedManager object at
0x016A9B50>' for column 'Pessoa_id' at row 1


--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to