python 2.7 - Why has the "Add another" button disappeared from my django inlines when upgrading to 1.6? -


I have a dezango site on many inline in the admin interface. On the previous version of the demogen that I was using, There was an "Add Another" button to add more entries there. I have advanced to the DNS 1.6 and this button has disappeared. Here is an additional part of my admin.py:

  class MyInline (admin.TabularInline): Extra = 0   

Note that extra = 0 because I Not wanting to display anything, unless there really is one or more entries.

I also tried to add max_num = 9999 based on some posts, but I did not help it.

I understand that the "add another" button has been implemented with javascript. Anyone can tell why the "Add another" button has gone, and more importantly, what can I do to get it back?

Thank you very much.

It turns out that the cause of this problem is from the previous version of my project The stable administrator was due to copy the files. Once I recopied the static administrator files from the current version, the "add another" button are back.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -