Hi guys, I'm working on a cms running over django1.1.1 and I'm facing a weird problem.
I have a BlogPost model that uses a callable (datetime.datetime.now) as default value for some field. I created my own views for manage blog posts. The view make use of a BlogPostForm ModelForm class, defined on another module. My code is organized in 3 files: models.py, views.py and forms.py. When I instantiate the BlogPostForm class, it expand the default value and the unbound form get his fields filled with the callable. If the callable is "datetime.datetime.now", the field is filled with the now value. The problem is that this expanding of callables are done on "formfield" method of the field class and this method is called in the form instantiation. This cause the default value to be expanded a first_time and stay the same for the next hits. Did you undestand what I meant? I think this is a bug. Did someone faced a similar problem? Best regards, -- Michel Sabchuk Brasil -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.