Code

Opened 7 months ago

Closed 7 months ago

#21119 closed Uncategorized (invalid)

changelist_view's save problem

Reported by: snowfly_wang@… Owned by: nobody
Component: contrib.admin Version: 1.4
Severity: Normal Keywords: changelist_view save check
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

we use the django 1.4.5, and our list page can save model, but when we save, some data did not check.
The contrib/admin/options.py's changelist_view function control the save process, when i want to verify whether my data repeat or not, the problem come, there isn't a function for us to do that, so i should rewrite the changelist_view function, which is really long.

Attachments (0)

Change History (2)

comment:1 Changed 7 months ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 7 months ago by timo

  • Resolution set to invalid
  • Status changed from new to closed

It sounds like you want to add custom validation logic in the admin. One way to do this is to use ModelAdmin.form.

If you need additional help, please use SupportChannels rather than this ticket tracker. Thanks!

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.