Ticket #12974: admindocs_methods.diff
File admindocs_methods.diff, 537 bytes (added by , 15 years ago) |
---|
-
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):