#14734: problem with postgresql views (psycopg2)
---------------------------------------------------+------------------------
Reporter: fulviociriaco | Owner: nobody
Status: new | Milestone:
Component: Database layer (models, ORM) | Version: 1.2
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Changes (by Alex):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Old description:
> I attempted to use django with postgresql views by means of model class,
> the view rows
> however do not change when the db is externally updated untill reentering
> python, e.g.
> >>> mv=MyView.object
> >>> mv.all()
> [<Myview: MyView object>]
> .....
> insert row into table
> .....
> >>> mv.all()
> [<Myview: MyView object>] #1 row
> ^d
> manage.py shell
> >>> from ... import MyView
> >>> MyView.objects.all()
> [<Myview: MyView object>,<Myview: MyView object>] #2 rows
>
> That's all.
> Fulvio
New description:
I attempted to use django with postgresql views by means of model class,
the view rows
however do not change when the db is externally updated untill reentering
python, e.g.
{{{
>>> mv=MyView.object
>>> mv.all()
[<Myview: MyView object>]
.....
insert row into table
.....
>>> mv.all()
[<Myview: MyView object>] #1 row
^d
manage.py shell
>>> from ... import MyView
>>> MyView.objects.all()
[<Myview: MyView object>,<Myview: MyView object>] #2 rows
}}}
That's all.
Fulvio
Comment:
I've reformatted the description of this ticket, in the future you can use
the "Preview" button to ensure that your message is formatted the way you
intended.
--
Ticket URL: <http://code.djangoproject.com/ticket/14734#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en.