On Nov 1, 2:55 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> Set it in your model's save() method.
I guess the point is that it's bad practice to hard-code magic values.
Having thought about it some more, two options that spring to mind
are:
1) Have a boolean 'default' field in the Severi
On Wed, 2007-10-31 at 16:56 +, Dan Ellis wrote:
> I have a model that contains a field, severity, that is a ForeignKey.
> When I create a new instance, I'd like that field to have the id of
> the Severity instance with the name 'Low'. What is the best way to do
> this? Putting default=1 in the
2 matches
Mail list logo