Monday, March 28, 2011

Re: unique_for_date not working?

On Mar 25, 10:42 pm, Karen Tracey <kmtra...@gmail.com> wrote:
> On Fri, Mar 25, 2011 at 12:17 PM, Andre Terra <andrete...@gmail.com> wrote:
> > Overwrite the model's save method and add the date automatically on save.
> > That is the best way to do most things "auto" in your models.
>
> But if you do this, you are past the point where you can flag non-unique for
> the date as an error on form submission. The fact that admin doesn't include
> readonly (excluded from form) fields in the unique checks is ticket #13091:
>
> http://code.djangoproject.com/ticket/13091
>
> Karen
> --http://tracey.org/kmt/

As "bystander" here... what then is the actual (best and definitive)
solution to the OP's problem?

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

No comments:

Post a Comment