Ticket #12974: admindocs_methods_trunk.diff

File admindocs_methods_trunk.diff, 612 bytes (added by Jared Forsyth, 15 years ago)

diff'd against the root

  • django/contrib/admindocs/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