Re: [Django] #13717: unique_for_* errors out when date field is left empty

2011-01-21 Thread Django
#13717: unique_for_* errors out when date field is left empty
---+
  Reporter:  silviogutierrez   | Owner:  suzaku
Status:  closed| Milestone:
 Component:  django.contrib.admin  |   Version:  1.2   
Resolution:  worksforme|  Keywords:
 Stage:  Unreviewed| Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  1 
Needs_better_patch:  0 |  
---+
Comment (by natrius):

 I was still getting non-producible errors after this bug was closed, but
 the fix for bug #14951 should definitely fix it.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13717: unique_for_* errors out when date field is left empty

2010-11-13 Thread Django
#13717: unique_for_* errors out when date field is left empty
---+
  Reporter:  silviogutierrez   | Owner:  suzaku
Status:  closed| Milestone:
 Component:  django.contrib.admin  |   Version:  1.2   
Resolution:  worksforme|  Keywords:
 Stage:  Unreviewed| Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  1 
Needs_better_patch:  0 |  
---+
Changes (by rasca):

  * status:  assigned => closed
  * resolution:  => worksforme

Comment:

 Hi, this works for me as of 14551

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13717: unique_for_* errors out when date field is left empty

2010-06-10 Thread Django
#13717: unique_for_* errors out when date field is left empty
---+
  Reporter:  silviogutierrez   | Owner:  suzaku
Status:  assigned  | Milestone:
 Component:  django.contrib.admin  |   Version:  1.2   
Resolution:|  Keywords:
 Stage:  Unreviewed| Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  1 
Needs_better_patch:  0 |  
---+
Comment (by suzaku):

 Replying to [comment:3 Alex]:

 Hi, Alex.
 I'm not quite sure where should I put my test code in, could you please
 tell me?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13717: unique_for_* errors out when date field is left empty

2010-06-09 Thread Django
#13717: unique_for_* errors out when date field is left empty
---+
  Reporter:  silviogutierrez   | Owner:  suzaku
Status:  assigned  | Milestone:
 Component:  django.contrib.admin  |   Version:  1.2   
Resolution:|  Keywords:
 Stage:  Unreviewed| Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  1 
Needs_better_patch:  0 |  
---+
Changes (by Alex):

  * needs_tests:  0 => 1

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13717: unique_for_* errors out when date field is left empty

2010-06-09 Thread Django
#13717: unique_for_* errors out when date field is left empty
---+
  Reporter:  silviogutierrez   | Owner:  suzaku
Status:  assigned  | Milestone:
 Component:  django.contrib.admin  |   Version:  1.2   
Resolution:|  Keywords:
 Stage:  Unreviewed| Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by suzaku):

  * owner:  nobody => suzaku
  * status:  new => assigned

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #13717: unique_for_* errors out when date field is left empty

2010-06-07 Thread Django
#13717: unique_for_* errors out when date field is left empty
---+
  Reporter:  silviogutierrez   | Owner:  nobody
Status:  new   | Milestone:
 Component:  django.contrib.admin  |   Version:  1.2   
Resolution:|  Keywords:
 Stage:  Unreviewed| Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by silviogutierrez):

  * needs_better_patch:  => 0
  * component:  Uncategorized => django.contrib.admin
  * needs_tests:  => 0
  * needs_docs:  => 0

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #13717: unique_for_* errors out when date field is left empty

2010-06-07 Thread Django
#13717: unique_for_* errors out when date field is left empty
-+--
 Reporter:  silviogutierrez  |   Owner:  nobody
   Status:  new  |   Milestone:
Component:  Uncategorized| Version:  1.2   
 Keywords:   |   Stage:  Unreviewed
Has_patch:  0|  
-+--
 Using Django 1.2.1, create a simple model, like so:

 {{{
 from django.db import models

 class Article(models.Model):

 title = models.CharField(max_length=200)
 pub_date = models.DateField()
 slug = models.SlugField(max_length=150, unique_for_year='pub_date')
 }}}

 and register it with the admin site in admin.py; the standard registration
 is fine:

 {{{
 from django.contrib import admin

 from models import Article

 admin.site.register(Article)
 }}}

 Go to create an article, and enter "abc" as the tile and the slug, but
 leave the date empty. On submission, you'll get {{{ 'NoneType' object has
 no attribute 'day' }}}.

 The error seems to apply to unique_for_year and unique_for_month as well,
 though the error displays "no attribute 'year'" and "no attribute 'month'"
 respectively, naturally. No error occurs if the field marked as
 unique_for_* is left empty, in this case the slug. Rather the actual
 validation message comes up. My guess is that the date field needs to be
 checked to see if it's empty first, and ''then'' check for uniqueness.

 In short, rather than displaying the validation for "this field is
 required" which is user friendly, the submission errors out. The same
 setup ''does not'' error out on Django 1.1.2.

 Let me know if you need any more details,

 Silvio

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.