Last updated October 04, 2008 17:00, by Eric Simorre
Feedicon  
= Legacy module = The legacy module provides 2 ways for dealing with tables with no pk or with composite pk see 'tests.py '' module. == OIDModel == Just use ''legacy.models.OIDModel'' instead of ''models.Model'' * Tested on a sqlite trac database: success * Oracle: should work * Postgres < 8.0: should work * Postgres 8+: should works with OID-enabled configuration * MySQL: should not work :-( (no OID support) == CmpPKModel == * Use ''legacy.models.CmpPKModel'' instead of ''models.Model'' * put ''edit'' in the admin ''list_display'' attribute, like this: list_display=('edit', 'other_field', ...) '''FIXME''': save works with force_insert=True option, update doesn't works, delete is deleting too many items
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close