Federico Capoano
unread,Jun 8, 2010, 5:47:15 PM6/8/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hello to all,
I just upgraded to revision 13336, I tried then to add a post on my
blog but I got an error. I tried then to save any other object in the
admin but I get always the same error:
"DatabaseError: function pg_get_serial_sequence("unknown", "unknown")
does not exist
HINT: No function matches the given name and argument types. You may
need to add explicit type casts."
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-packages/django/core/handlers/
base.py", line 100, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/site-packages/django/contrib/admin/
options.py", line 239, in wrapper
return self.admin_site.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python2.6/site-packages/django/utils/
decorators.py", line 76, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.6/site-packages/django/views/decorators/
cache.py", line 69, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.6/site-packages/django/contrib/admin/
sites.py", line 190, in inner
return view(request, *args, **kwargs)
File "/usr/local/lib/python2.6/site-packages/django/utils/
decorators.py", line 21, in _wrapper
return decorator(bound_func)(*args, **kwargs)
File "/usr/local/lib/python2.6/site-packages/django/utils/
decorators.py", line 76, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.6/site-packages/django/utils/
decorators.py", line 17, in bound_func
return func(self, *args2, **kwargs2)
File "/usr/local/lib/python2.6/site-packages/django/db/
transaction.py", line 299, in _commit_on_success
res = func(*args, **kw)
File "/usr/local/lib/python2.6/site-packages/django/contrib/admin/
options.py", line 795, in add_view
self.save_model(request, new_object, form, change=False)
File "/usr/local/lib/python2.6/site-packages/django/contrib/admin/
options.py", line 597, in save_model
obj.save()
File "/usr/local/lib/python2.6/site-packages/django/db/models/
base.py", line 435, in save
self.save_base(using=using, force_insert=force_insert,
force_update=force_update)
File "/usr/local/lib/python2.6/site-packages/django/db/models/
base.py", line 528, in save_base
result = manager._insert(values, return_id=update_pk, using=using)
File "/usr/local/lib/python2.6/site-packages/django/db/models/
manager.py", line 195, in _insert
return insert_query(self.model, values, **kwargs)
File "/usr/local/lib/python2.6/site-packages/django/db/models/
query.py", line 1479, in insert_query
return query.get_compiler(using=using).execute_sql(return_id)
File "/usr/local/lib/python2.6/site-packages/django/db/models/sql/
compiler.py", line 789, in execute_sql
self.query.model._meta.db_table, self.query.model._meta.pk.column)
File "/usr/local/lib/python2.6/site-packages/django/db/backends/
postgresql/operations.py", line 59, in last_insert_id
cursor.execute("SELECT CURRVAL(pg_get_serial_sequence('%s','%s'))"
% (table_name, pk_name))
File "/usr/local/lib/python2.6/site-packages/django/db/backends/
postgresql_psycopg2/base.py", line 44, in execute
return self.cursor.execute(query, args)
Could anyone please help me and tell me what's this? It seems I'm the
only one getting this.