Opened 14 years ago
Last modified 14 years ago
#14734 closed
problem with postgresql views (psycopg2) — at Version 1
Reported by: | fulviociriaco | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.2 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
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
Note:
See TracTickets
for help on using tickets.
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.