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)

      def __unicode__(self):
            return u"%s" % foo


   print Foo()


   I am getting a DoesNotExist exception when I haven't even touched
the database yet!

   Some of my code depends on this behavior (ie foo.save
(commit=False) ) so I can patch it with data that's not supposed to be
defined by the user after it comes out of a modelform. Perhaps my
technique is weak, but nonetheless I find this behavior strange.

Is it just me?

Thanks,
A.M.

--

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


Reply via email to