﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
20807	Inline don't care about max_num if has_add_permission is set to false	yves.guimard@…	polmuz	"Hi,

I have defined an Inline to display a large number of objects (more than max_num default value).
So, I set max_num to 10000 and it works well until I set has_add_permission to false

Here is the class defined in a admin.py file:

class softInline(admin.TabularInline):
    model = software
    max_num = 10000
    extra = 0
    readonly_fields = ('name', 'version', 'uninstall', 'manualy_created',)
    def has_add_permission(self, request):
                return False

Did I missed something or do you think that it's a bug?

Thanks,
Yves"	Bug	closed	contrib.admin	1.6	Normal	fixed	admin inline max_num	polmuz	Accepted	0	0	0	0	0	0
