Ticket #12974: admindocs_methods.diff

File admindocs_methods.diff, 537 bytes (added by Jared Forsyth, 14 years ago)

patch

  • views.py

     
    235235
    236236    # Gather model methods.
    237237    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):
    239239            try:
    240240                for exclude in MODEL_METHODS_EXCLUDE:
    241241                    if func_name.startswith(exclude):
Back to Top