-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Add link" shown when options "extra" and "max_num" equal 0 #54
Comments
Could you provide some context? What purpose does an inline with |
@fdintino when we set max_num=0 and extra=0 for common inlines, "add link" disappear, but for for nested inline it does not work. |
I don't know why this was closed, but it is indeed a bug with this project. |
@j2kun it was closed because 02eb051 should fix this issue. Specifically, this line should cause the add another button to be hidden. Is that not the case for you? Could you share the version of Django you are using, whether you are using any django skins such as grappelli or django-suit, and whether you are doing any other customizations with the admin (e.g. other admin enhancement modules, custom |
This is happening for me with a vanilla admin panel for django 1.10. My admin looks roughly like the following, with
|
(the has add permission was a hailmary) |
Huh, that's weird. I'm having difficulty reproducing. The following are screenshots from running |
I'll keep looking into it. |
Maybe related? I get the add and remove buttons when |
I've set options for my NestedTabularInline like this:
class PackageItemInline(nested_admin.NestedTabularInline):
model = PackageUnit
extra = 0
max_num = 0
But nothing changed, I still see "add link". Could anyone explain what the problem is ?
The text was updated successfully, but these errors were encountered: