Last updated October 04, 2008 17:00, by Eric Simorre
= 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





