>> Maybe this is an irrelevant question, but I have to define a model >> for an application without any primary-key. Is such definition >> possible in "Django"? Because I have to make a model from the below >> MySQL table which doesn't have any primary key > > django is for programmers - perfectionists with deadlines - > programmers/perfectionists do not deal with tables without primary > keys. Maybe it is possible, but please dont do this.
It looks like the OP may be using a compound key: KEY `input` (`jobID`,`processorID`) which Django doesn't currently support. I don't remember hearing murmurings of the query-set refactor addressing this. Sure, it would be a nice-to-have, but most of the time just assigning an auto-incrementing field as an ID serves as a work-around. -tim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---