Code

Changes between Initial Version and Version 5 of Ticket #7285


Ignore:
Timestamp:
06/16/08 08:56:23 (6 years ago)
Author:
ramiro
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7285

    • Property Status changed from new to assigned
    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Owner changed from nobody to gav
    • Property Needs documentation unset
  • Ticket #7285 – Description

    initial v5  
    11When inspectdb encounters a field with a dash, it outputs it as a variable name which is invalid in python. For instance, when i ran it, I got the line: 
    2  
     2{{{ 
    33buy-back_amount = models.FloatField(null=True, blank=True) 
    4  
     4}}} 
    55which I had to manually change to: 
    6  
     6{{{ 
    77buy_back_amount = models.FloatField(null=True, blank=True, db_column="buy-back") 
    8  
     8}}} 
    99This was found in the SVN version of django with a mysql database.