pombreda / formalchemy

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

If attribute name is not equal to the column name for a foreign key, relationship field gets wrong name #155

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Run the attached unittests.

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

All four unit tests should pass.   Two fail for me.

What version of the product are you using? On what operating system?

 Debian Lenny
 python 2.5
 FormAlchemy 1.3.5
 SQLAlchemy 0.6.5

Please provide any additional information below.

  The field names for the ORM relationship attributes should be
  equal to the attribute names for the foreign key.  This currently
  seems to be broken except in the case where the column name
  is equal to the attribute name.

  I'm no SQLalchemy guru, so I'm not sure of what the solution might be.
  Perhaps one needs to search through the attributes on the ORM-mapped
  class to find the one which is mapped to the correct column.

Original issue reported on code.google.com by dair...@gmail.com on 24 Nov 2010 at 3:32

Attachments: