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
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
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()
>>>
3 matches
Mail list logo