google-code-export / django-grappelli

Automatically exported from code.google.com/p/django-grappelli
0 stars 0 forks source link

allow_add does not play nicely with date and time fields #97

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
To see the problem, create an inline that includes a DateTimeField, and set the 
allow_add option. 
Fill in all the visible inline fields, then click on the + to create a new 
inline. Now try to set the 
datetime info in the new inline using the javascript shortcut. Instead of 
updating the new inline, the 
javascript updates the previous inline.

This is because the id of the datetime field in the new inline is not correctly 
incremented.

Original issue reported on code.google.com by ether.mu...@gmail.com on 17 Sep 2009 at 10:45

GoogleCodeExporter commented 9 years ago
reproduced. this is a bit more complicated, since we can´t just increment the 
counter
(because more calendars and clocks could be further down the page). therefore, 
we
have to remove all calendars and clocks and re-init everything.

Original comment by sehmaschine on 25 Sep 2009 at 9:30

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r499.

Original comment by sehmaschine on 25 Sep 2009 at 9:31