Re: Exception raised when calling "save()" on simple model object.

2005-10-25 Thread [EMAIL PROTECTED]
Adam wrote: > I wrote a ticket about this (http://code.djangoproject.com/ticket/662). > I think I found where and why this occurs, but I don't have a patch for > it, because I suspect there are more things going on than I know about, > and I don't want to do just a quick fix for my particular

Re: Exception raised when calling "save()" on simple model object.

2005-10-25 Thread Adam
I forgot to add...in your particular case, I think s = statustypes.StatusType(description='foo') will work. Or if you don't know what the description is yet, and need to save before setting it, s = statustypes.StatusType(description='') What it requires is having some kind of keyword

Exception raised when calling "save()" on simple model object.

2005-10-25 Thread Peter Havens
Using Django revision 1011, I defined an app called "audit". I defined a model for that app as follows: class StatusType(meta.Model): description = meta.CharField(maxlength=100) ...I tried testing it like this: >>> from django.models.audit import * >>> s = statustypes.StatusType() >>>