We do not support multi-column primary keys at this point in time.
Malcolm
You omit some key details:
-are the tenants writing data, or just reading data?
If they're just reading data, you can jockey your views based on
the tenant. We're currently doing that in our current Django app.
-do you want to use the default Admin?
If you want to use the default Admin, no. You /can/ write your
own admin. This is a bit of a pain, but can be done. This might
be eased a bit in the newforms series. I haven't dug into it a
bit, but it sounds like it's designed to help here. Fortunately,
Django is just a framework, so it doesn't prevent you from doing
this. It just means that you can't take advantage of default
scaffolding and have to roll some of your own.
As previously mentioned by Malcom, Django doesn't currently
support multi-column keys.
Just a few ideas.
-tkc
> As previously mentioned by Malcom, Django doesn't currently
> support multi-column keys.
their *is* unique_together, but will that suit your needs?
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
Django does not currently have support for composite keys. You can
fake this to a certain extent with unique_together, but from Django's
point of view only one column will be treated as the primary key.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."