Changes between Initial Version and Version 5 of Ticket #7285
- Timestamp:
- Jun 16, 2008, 10:56:23 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7285
- Property Owner changed from to
- Property Status new → assigned
-
Ticket #7285 – Description
initial v5 1 1 When 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 {{{ 3 3 buy-back_amount = models.FloatField(null=True, blank=True) 4 4 }}} 5 5 which I had to manually change to: 6 6 {{{ 7 7 buy_back_amount = models.FloatField(null=True, blank=True, db_column="buy-back") 8 8 }}} 9 9 This was found in the SVN version of django with a mysql database.