Hi Continuation,
In Django, at this time, the best you can do is:
class AuctionBid(models.Model):

    class Meta:
        unique_together = ( ( '



On Apr 29, 12:09 pm, Continuation <selforgani...@gmail.com> wrote:
> I'm using MySQL with Django.
>
> MySQL uses clustered index. I have a class AuctionBid for which the
> "natural" PK is (user_id, auction_id).
>
> I'd like to set (user_id, aucton_id) as the PK so that it'll be the
> clustered index. I understand that Django doesn't support composite
> PK. But what if after syncdb I just ALTER TABLE to make (user_id,
> aucton_id) the PK. Would that work with Django or would that introduce
> some unwanted behavior under the hood?
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to