vzima/django-multilingual-ds9 — pull request #6 by marltu (2012-03-07 11:56:41+00:00)
Title: Fixed issue when creating form and specifying fields

Lets say you create Model:

class Foo(MultilingualModel):
non_trans_field = models.CharField(max_length=255)
class Translation:
trans_field = models.CharField(max_length=255)

And ModelForm:
class FooForm(MultilingualModelForm):
class Meta:
model = Foo
fields = (non_trans_field, trans_field)

And in template
{{ form.as_li }}

This will cause an error, because MultilingualModelForm creates form, that has fields: {'non_trans_field': None, 'trans_field': <...field...>

And rendering non_trans_field fails.

My commit fixes this error.