Opened 11 years ago

Closed 8 years ago

Last modified 5 years ago

#1625 closed defect (wontfix)

unique_for_* don't work with auto_now* fields

Reported by: nesh <nesh [at] studioquattro [dot] co [dot] yu> Owned by: nobody
Component: Validators Version: newforms-admin
Severity: major Keywords: nfa-blocker
Cc: nesh@…, cmawebsite@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Because auto_add fields don't show up in forms unique_for_* stuff don't work. manipulator_validator_unique_for_date search form data for values so it can't find any value for this type of fields.

Change History (13)

comment:1 Changed 11 years ago by online directory main

Component: ValidatorsDjango project website
Keywords: http://www.dirare.com added
milestone: Version 0.92
Owner: changed from Adrian Holovaty to Jacob
Severity: normalminor
Type: defecttask

Welcome!!! http://www.dirare.com/Sweden/ online directory. [URL=http://www.dirare.com]YP nationalURL: MY yellowpages, SMART Yellow Pages, About DIRare. Also [url=http://www.dirare.com]global directoryurl from online directory .

comment:2 Changed 11 years ago by anonymous

Component: Django project websiteValidators
Keywords: http://www.dirare.com removed
Owner: changed from Jacob to Adrian Holovaty
Severity: minormajor
Type: taskdefect

comment:3 Changed 10 years ago by Gary Wilson <gary.wilson@…>

milestone: Version 0.92Version 1.0

0.92 is long gone.

comment:4 Changed 10 years ago by (none)

milestone: Version 1.0

Milestone Version 1.0 deleted

comment:5 Changed 10 years ago by Gary Wilson <gary.wilson@…>

Summary: unique_for_* don't work with auto_add* fieldsunique_for_* don't work with auto_now* fields
Triage Stage: UnreviewedAccepted

comment:6 Changed 10 years ago by Nebojša Đorđević <nesh@…>

Cc: nesh@… added; nesh@… removed

comment:7 Changed 9 years ago by Adrian Holovaty

Version: magic-removalSVN

comment:8 Changed 8 years ago by Simon Greenhill

Keywords: nfa-blocker added
Version: SVNnewforms-admin

comment:9 Changed 8 years ago by Marc Garcia

milestone: 1.0 alpha

comment:10 Changed 8 years ago by Malcolm Tredinnick

Isn't this kind of a red herring ticket? auto_now and auto_now_add are deprecated and should be replaced with additions in the save() method and default attributes respectively. Thus they'll be handled like any other default attributes (or things added in save()). Adding in special handling for auto_now_* would seem to be counter-productive.

comment:11 Changed 8 years ago by Collin Anderson

Cc: cmawebsite@… added

comment:12 Changed 8 years ago by Jacob

Resolution: wontfix
Status: newclosed

Yeah, this is wontfix -- people shouldn't be using auto_now* any more.

comment:13 Changed 5 years ago by Jacob

milestone: 1.0 alpha

Milestone 1.0 alpha deleted

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