Hi Mikeal,

On Wed, 2006-06-07 at 19:17 -0700, Mikeal Rogers wrote:
> Hiya,
> 
> I'm using the django trunk and tried to generate the SQL for a model  
> I just wrote and got the following traceback;
> 
>      execute_manager(settings)
>    File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
> python2.4/site-packages/django/core/management.py", line 1255, in  
> execute_manager
>      execute_from_command_line(action_mapping, argv)
>    File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
> python2.4/site-packages/django/core/management.py", line 1222, in  
> execute_from_command_line
>      output = action_mapping[action](mod)
>    File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
> python2.4/site-packages/django/core/management.py", line 116, in  
> get_sql_create
>      final_output.extend(_get_many_to_many_sql_for_model(klass))
>    File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
> python2.4/site-packages/django/core/management.py", line 225, in  
> _get_many_to_many_sql_for_model
>      table_output.append('    %s %s %s %s (%s),' % \
> AttributeError: 'ManyToManyField' object has no attribute  
> 'm2m_column_name'
> 
> I looked through the ManyToMany class for a minute and the  
> m2m_column_name assignments weren't removed or anything so I'm a bit  
> perplexed as to what the issue is.
> 
> I'm using sqlite3.

This is pretty unusual. Would you be able to post the model that is
causing the problems? That might help debug it.

Thanks,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to