[Django] #21119: changelist_view's save problem

8 views
Skip to first unread message

Django

unread,
Sep 18, 2013, 5:27:36 AM9/18/13
to django-...@googlegroups.com
#21119: changelist_view's save problem
--------------------------------+----------------------------------------
Reporter: snowfly_wang@… | Owner: nobody
Type: Uncategorized | Status: new
Component: contrib.admin | Version: 1.4
Severity: Normal | Keywords: changelist_view save check
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+----------------------------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/21119>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 18, 2013, 5:28:05 AM9/18/13
to django-...@googlegroups.com
#21119: changelist_view's save problem
-------------------------------------+-------------------------------------

Reporter: snowfly_wang@… | Owner: nobody
Type: Uncategorized | Status: new
Component: contrib.admin | Version: 1.4
Severity: Normal | Resolution:
Keywords: changelist_view | Triage Stage:
save check | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by anonymous):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/21119#comment:1>

Django

unread,
Sep 18, 2013, 7:11:22 AM9/18/13
to django-...@googlegroups.com
#21119: changelist_view's save problem
-------------------------------------+-------------------------------------
Reporter: snowfly_wang@… | Owner: nobody
Type: Uncategorized | Status: closed
Component: contrib.admin | Version: 1.4
Severity: Normal | Resolution: invalid

Keywords: changelist_view | Triage Stage:
save check | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timo):

* status: new => closed
* resolution: => invalid


Comment:

It sounds like you want to add custom validation logic in the admin. One
way to do this is to use
[https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.form
ModelAdmin.form].

If you need additional help, please use
[https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels
SupportChannels] rather than this ticket tracker. Thanks!

--
Ticket URL: <https://code.djangoproject.com/ticket/21119#comment:2>

Reply all
Reply to author
Forward
0 new messages