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 Severity model to determine
which one should be used in a new Alert.
2) Have a prototype Alert that can be cloned for new Alerts, perhaps
just an instance with prototype=True.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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