Code

Opened 6 years ago

Closed 6 years ago

#7175 closed (invalid)

"extra" anchor in sidebar is really long

Reported by: anonymous Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In the sidebar on the Database API page, the anchor to the extra function is too long.

Instead of listing all possible keyword arguments:

    extra(select=None, where=None, params=None, tables=None, order_by=None, select_params=None)

It just have the packed "kwargs" format, consistent with the other functions:

    extra(**kwargs)

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by ubernostrum

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

The other methods, like get, filter, etc. are marked as taking **kwargs because that's their actual argument signature; the correct keyword arguments are determined at runtime according to the model in use. The arguments to extra, however, do not vary and should be documented clearly.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.