google-code-export / django-modeltranslation

Automatically exported from code.google.com/p/django-modeltranslation
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

TypeError: 'module' object is not iterable #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Copy the wiki for implement translation settings.py is ok
but when i search for " python manage.py sql " he raise => TypeError: 'module' 
object is not iterable. I don't understand...
2.
3.

What is the expected output? What do you see instead?
File "/usr/local/lib/python2.6/dist-packages/modeltranslation/models.py", line 
17, in <module>
    __import__(TRANSLATION_REGISTRY, {}, {}, [''])
  File "/home/****/Dev/Python/Web/*****/*****/translation.py", line 7, in <module>
    translator.register(Regne, NewsTranslationOptions)
  File "/usr/local/lib/python2.6/dist-packages/modeltranslation/translator.py", line 129, in register
    for model in model_or_iterable:
TypeError: 'module' object is not iterable

What version of the product are you using? On what operating system?
modeltranslation 0.3
django 1.4
postgresql 8.4

Please provide any additional information below.

Original issue reported on code.google.com by herveber...@gmail.com on 5 May 2012 at 4:59

GoogleCodeExporter commented 9 years ago
Can you please post the content of your translation.py?

Original comment by eschler on 10 May 2012 at 8:12

GoogleCodeExporter commented 9 years ago

Original comment by eschler on 10 Jul 2012 at 9:35