1. I am using django 1.0.2.
3. update works fine if i change a field that is not geometry related.
I successfully altered the FK with update like this:
-
up = polygons.objects.filter(id=area_id).update(polyuser=16)
-
2.
Traceback:
File "/var/lib/python-support/python2.5/django/core/handlers/base.py"
in get_response
86. response = callback(request, *callback_args,
**callback_kwargs)
File "/var/lib/python-support/python2.5/django/contrib/auth/
decorators.py" in __call__
67. return self.view_func(request, *args, **kwargs)
File "/home/antonios/orchid_demo/../orchid_demo/appname/views.py" in
polystore
297. up = polygons.objects.filter(id=area_id).update
(geometry=geometria)
File "/var/lib/python-support/python2.5/django/db/models/query.py" in
update
417. rows = query.execute_sql(None)
File "/var/lib/python-support/python2.5/django/db/models/sql/
subqueries.py" in execute_sql
117. cursor = super(UpdateQuery, self).execute_sql
(result_type)
File "/var/lib/python-support/python2.5/django/db/models/sql/query.py"
in execute_sql
1734. cursor.execute(sql, params)
File "/var/lib/python-support/python2.5/django/db/backends/util.py" in
execute
19. return self.cursor.execute(sql, params)
Exception Type: ProgrammingError at /appname/polystore/
Exception Value: can't adapt
I hope this helps! It is the least i can do for you.
Regards,
On Mar 4, 3:32 pm, Ariel Mauricio Nunez Gomez
<
ingenieroar...@gmail.com> wrote:
> I still would like to know the cause of the original issue, can you do the
> following things for me:
> 1. Tell me which django version you are using?2. Post the full traceback for
> the error.
> 3. Try with other field the same clause:
> up = polygons.objects.filter(id=area_id).update(other_field='test')
>
> I guess I am not so familiar with update to know what's wrong yet.
>
> Best,
> Ariel.
>