#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.

Change History (2)

comment:1 Changed 22 months ago by anonymous

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

comment:2 Changed 22 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!

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