Opened 10 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:


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

  • Component changed from Validators to Django project website
  • Keywords added
  • milestone set to Version 0.92
  • Owner changed from adrian to jacob
  • Severity changed from normal to minor
  • Type changed from defect to task

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

comment:2 Changed 10 years ago by anonymous

  • Component changed from Django project website to Validators
  • Keywords removed
  • Owner changed from jacob to adrian
  • Severity changed from minor to major
  • Type changed from task to defect

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

  • milestone changed from Version 0.92 to Version 1.0

0.92 is long gone.

comment:4 Changed 10 years ago by anonymous

  • milestone Version 1.0 deleted

Milestone Version 1.0 deleted

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

  • Summary changed from unique_for_* don't work with auto_add* fields to unique_for_* don't work with auto_now* fields
  • Triage Stage changed from Unreviewed to Accepted

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

  • Cc nesh@… added; nesh@… removed

comment:7 Changed 9 years ago by adrian

  • Version changed from magic-removal to SVN

comment:8 Changed 8 years ago by Simon Greenhill

  • Keywords nfa-blocker added
  • Version changed from SVN to newforms-admin

comment:9 Changed 8 years ago by garcia_marc

  • milestone set to 1.0 alpha

comment:10 Changed 8 years ago by mtredinnick

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 CollinAnderson

  • Cc cmawebsite@… added

comment:12 Changed 8 years ago by jacob

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

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 deleted

Milestone 1.0 alpha deleted

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