OdifYltsaeb / django-multilingual

Automatically exported from code.google.com/p/django-multilingual
MIT License
0 stars 0 forks source link

pk.column is id instead of the customed name #108

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a multilingual model using a customed primary_key
2. Try to create a query on a field inside the Translation Model
3. model.id doesn't exists

What is the expected output? What do you see instead?

Of course it doesn't exists. It is not id but the customed name.

Here is the patch to fix this :

Original issue reported on code.google.com by hubscher.remy on 1 Dec 2009 at 4:03

Attachments:

GoogleCodeExporter commented 8 years ago
+1 Had the same issue, produced exactly the same patch.

Original comment by mbonetti on 1 Apr 2010 at 12:21