Opened 7 years ago

Closed 7 years ago

#29370 closed New feature (fixed)

Add choices to LogEntry.action_flag

Reported by: James Pic Owned by: Nicolas Noé
Component: contrib.admin Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

This ticket suggests to use the choices feature for django.contrib.admin.models.LogEntry.action_flag

This would enable using get_action_flag_display(), and also to add new action flags in addition to the existing ones (ADDITION, CHANGE, DELETION).

Change History (5)

comment:1 by Claude Paroz, 7 years ago

Triage Stage: UnreviewedAccepted
Version: 2.0master

Makes sense.

comment:2 by Tim Graham, 7 years ago

Summary: LogEntry.action_flag.choicesAdd choices to LogEntry.action_flag

comment:3 by Nicolas Noé, 7 years ago

Owner: changed from nobody to Nicolas Noé
Status: newassigned

comment:4 by Nicolas Noé, 7 years ago

Has patch: set

comment:5 by Tim Graham <timograham@…>, 7 years ago

Resolution: fixed
Status: assignedclosed

In c4158d0:

Fixed #29370 -- Added choices to LogEntry.action_flag field.

Note: See TracTickets for help on using tickets.
Back to Top