I've got several tables like the one below, where I initialize it with "template" values that I copy when I create a new record. INSERT INTO A VALUES (19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ............., 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '&', '&'), (20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0................. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '&', '&'), (21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0............., 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '&', '&'), (22, 0, 0, 0, 0, 0, 0................., '&', '&', 0, 0, 0, 0, 0, '&', '&', '&', '&', '&', '&', '&', 0, 0, 0, 0, 0, '&', 0, 0, 0, 0, '&', '&'), (23, 0, 0, 0, 0, 0..................0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '&', 0, 0, 0, 0, '&', '&'),
I would like to replace some of those "0"'s with a different value, but it's pretty hard to count over to the right field on the larger tables. I thought it would be better to replace all the 0's with NULL and let the default value in the django model put in the correct value, but either that's not how Django works or I don't know how to do it. Can anyone point me to the right docs or better yet, provide a snippet? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.