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 argument. That triggers
the code that causes the AutoField (id) to be initialized.

Reply via email to