Ticket #2517: management.diff
File management.diff, 730 bytes (added by , 18 years ago) |
---|
-
management.py
733 733 extra_params['db_column'] = att_name 734 734 att_name += '_field' 735 735 comment_notes.append('Field renamed because it was a Python reserved word.') 736 elif att_name.find(' ') != -1: 737 extra_params['db_column'] = att_name 738 att_name = att_name.replace(' ', '') 739 comment_notes.append('Field renamed to remove space(s)') 736 740 737 741 if relations.has_key(i): 738 742 rel_to = relations[i][1] == table_name and "'self'" or table2model(relations[i][1])