Ticket #12974: admindocs_methods_trunk.diff
File admindocs_methods_trunk.diff, 612 bytes (added by , 15 years ago) |
---|
-
django/contrib/admindocs/views.py
235 235 236 236 # Gather model methods. 237 237 for func_name, func in model.__dict__.items(): 238 if (inspect.isfunction(func) and len(inspect.getargspec(func)[0]) == 1):238 if (inspect.isfunction(func) and len(inspect.getargspec(func)[0]) <= 1): 239 239 try: 240 240 for exclude in MODEL_METHODS_EXCLUDE: 241 241 if func_name.startswith(exclude):