google-code-export / yabi

Automatically exported from code.google.com/p/yabi
0 stars 1 forks source link

Yabi-admin Save As New problems #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to the change view or a tool or toolset
2. Click on Save As New without changing the name
3. Validation error occurs, change name and now click Save.

What is the expected output? What do you see instead?
Internal Server Error:
ValueError: invalid literal for int() with base 10: ''

Workaround: Change the name of the tool or tool group before clicking Save As 
New

Original issue reported on code.google.com by amacgregor on 29 Jul 2011 at 2:57

GoogleCodeExporter commented 9 years ago

Original comment by aahun...@gmail.com on 29 Jul 2011 at 3:05

GoogleCodeExporter commented 9 years ago

Original comment by aahun...@gmail.com on 29 Jul 2011 at 3:05

GoogleCodeExporter commented 9 years ago
Turns out this is an open bug with Django:

https://code.djangoproject.com/ticket/13223

I've verified using Django 1.2 and 1.3 and it is what causes the problem. It is 
only an issue when a page has inlines, you click Save As New and validation 
fails.

Original comment by amacgregor on 3 Aug 2011 at 2:47

GoogleCodeExporter commented 9 years ago
Have turned of Save As New on any AdminModel with inlines to work around this 
Django bug.

Original comment by amacgregor on 3 Aug 2011 at 3:57