Opened 19 years ago

Closed 16 years ago

Last modified 13 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: no UI/UX: no

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 by online directory main, 19 years ago

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 by anonymous, 19 years ago

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

comment:3 by Gary Wilson <gary.wilson@…>, 18 years ago

milestone: Version 0.92Version 1.0

0.92 is long gone.

comment:4 by (none), 18 years ago

milestone: Version 1.0

Milestone Version 1.0 deleted

comment:5 by Gary Wilson <gary.wilson@…>, 18 years ago

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

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

Cc: nesh@… added; nesh@… removed

comment:7 by Adrian Holovaty, 17 years ago

Version: magic-removalSVN

comment:8 by Simon Greenhill, 16 years ago

Keywords: nfa-blocker added
Version: SVNnewforms-admin

comment:9 by Marc Garcia, 16 years ago

milestone: 1.0 alpha

comment:10 by Malcolm Tredinnick, 16 years ago

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 by Collin Anderson, 16 years ago

Cc: cmawebsite@… added

comment:12 by Jacob, 16 years ago

Resolution: wontfix
Status: newclosed

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

comment:13 by Jacob, 13 years ago

milestone: 1.0 alpha

Milestone 1.0 alpha deleted

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