pombreda / formalchemy

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

Admin controller fails to redirect on primary_key edit #149

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Let user edit primary key
File form/__init__.py
...
Product = FieldSet(model.Product)
Product.configure(pk=True)
...

2. Go to admin panel and edit a Product.id (say this is needed because the id 
is the product serial blah blah...)

3. Save

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

A 404 page comes up since the old id is used
http://127.0.0.1:5000/admin/Product/models/`old_id`

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

In [2]: formalchemy.__version__ 
Out[2]: '1.3.5'

In [4]: pylons.__version__ 
Out[4]: '1.0'

In [6]: sqlalchemy.__version__ 
Out[6]: '0.6.4'

Please provide any additional information below.

Original issue reported on code.google.com by neur...@gmail.com on 12 Oct 2010 at 11:22

GoogleCodeExporter commented 9 years ago
Will try to fix this. Thanks

Original comment by gael.pas...@gmail.com on 12 Oct 2010 at 11:29