Ticket #2517: management.diff

File management.diff, 730 bytes (added by Karen Tracey <graybark@…>, 18 years ago)
  • management.py

     
    733733                extra_params['db_column'] = att_name
    734734                att_name += '_field'
    735735                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)')
    736740
    737741            if relations.has_key(i):
    738742                rel_to = relations[i][1] == table_name and "'self'" or table2model(relations[i][1])
Back to Top