#13023: Don't show "+ Add another" in admin inlines when extra = 0 -------------------------------------------+-------------------------------- Reporter: rasca | Owner: gabrielhurley Status: closed | Milestone: 1.2 Component: django.contrib.admin | Version: SVN Resolution: fixed | Keywords: Stage: Accepted | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------------------+-------------------------------- Comment (by anonymous):
sorry, I´ve been posting the wrong code ...[[BR]] this is the fix {{{ if ((maxForms.val() != 0) && (maxForms.val()-totalForms.val()) < 0) { }}} if max_num is not defined, I´m having a maxForm value of "0" and not "".[[BR]] line 36 of inline.js has the following note {{{ // note that max_num = None translates to a blank string. }}} that´s not true for me ...[[BR]] tested with firefox 3.6.2 on osx, django rev 12852. -- Ticket URL: <http://code.djangoproject.com/ticket/13023#comment:11> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.