Changes between Initial Version and Version 5 of Ticket #7285


Ignore:
Timestamp:
Jun 16, 2008, 10:56:23 AM (16 years ago)
Author:
Ramiro Morales
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7285

    • Property Owner changed from nobody to George Vilches
    • Property Status newassigned
  • 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.
Back to Top