Testing Newforms for Blankness

2009-12-24 Thread Aristotle Miternan
Hello all, I'm fairly new to Django and I noticed a curious behavior of forms. I noticed that there is no simple way to test a form for a form not being filled at all. I think it might be a semi-common use case that you might want to simply not generate a new model instance if a form has no in

Re: Testing Newforms for Blankness

2009-12-24 Thread Aristotle Miternan
st to someone else. -AM On Dec 24, 3:02 pm, Shawn Milochik wrote: > On Dec 24, 2009, at 2:51 PM, Aristotle Miternan wrote: > > > > > > > Hello all, > > >    I'm fairly new to Django and I noticed a curious behavior of > > forms. I noticed that there i

Re: Testing Newforms for Blankness

2009-12-24 Thread Aristotle Miternan
ation I think my users should be required to remove things they don't want so that the principle of least surprise is satisfied. I guess that I don't need it after all. Sorry about that. -AM On Dec 24, 3:02 pm, Shawn Milochik wrote: > On Dec 24, 2009, at 2:51 PM, Aristo

Possible (very bad) bug in models? Latest SVN (revision 12103 | Django 1.2)

2010-01-05 Thread Aristotle Miternan
Hello everyone, The latest update to django 1.2 broke my code and I'm hesitant to post it as a bug when I'm not sure if there's a core concept that changed that I don't get. I noticed that I am no longer able to do this: class Foo(models.Model): foo = models.CharField(max_length=30

Re: Possible (very bad) bug in models? Latest SVN (revision 12103 | Django 1.2)

2010-01-05 Thread Aristotle Miternan
: > On Tue, Jan 5, 2010 at 5:52 PM, Aristotle Miternan > wrote: > > Hello everyone, > > >   The latest update to django 1.2 broke my code and I'm hesitant to > > post it as a bug when I'm not sure if there's a core concept that > > changed that I don

Re: Possible (very bad) bug in models? Latest SVN (revision 12103 | Django 1.2)

2010-01-05 Thread Aristotle Miternan
#x27;, {}, context_instance=RequestContext(request) ) else: return render_to_reponse( 'sometemplate.html', { 'form' : myform }, context_instance=RequestContext(request) ) Thanks! A.M. On Jan 5, 9:02 pm, Karen Tracey wrote: > On Tue, Jan 5, 2010 at 8:41 PM,

Re: Possible (very bad) bug in models? Latest SVN (revision 12103 | Django 1.2)

2010-01-05 Thread Aristotle Miternan
Thank you very much Russ. I thought I was doing something weird, but I wasn't sure (I'm very new to Django). I'll give it a shot. -AM On Jan 5, 10:38 pm, Russell Keith-Magee wrote: > On Wed, Jan 6, 2010 at 11:13 AM, Aristotle Miternan > > > > > > wrote: >