Changes between Initial Version and Version 1 of Ticket #12387
- Timestamp:
- Feb 9, 2010, 3:40:09 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12387
- Property Resolution → invalid
- Property Status new → closed
-
Ticket #12387 – Description
initial v1 1 1 Postgres backend. When there is more references to one table with ForeignKey in same model sometimes there is thrown Exception (not always). 2 2 {{{ 3 3 File "/usr/local/lib/python2.6/site-packages/django/db/models/base.py", line 410, in save 4 4 self.save_base(force_insert=force_insert, force_update=force_update) … … 24 24 HINT: See server log for query details. 25 25 CONTEXT: SQL statement "SELECT 1 FROM ONLY "public"."foo_bar" x WHERE "id" OPERATOR(pg_catalog.=) $1 FOR SHARE OF x" 26 26 }}} 27 27 Example of model: 28 28 {{{ 29 29 class bar(models.Model): 30 30 baz = models.ForeignKey('some.model', related_name='sm') 31 31 other = models.ForeignKey('some.model', related_name='so') 32 }}}