Modify ↓
Ticket #1064 (closed defect: worksforme)
bad indent of "pass" when creating empty initial migration
| Reported by: | nexus@… | Owned by: | andrew |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | commands | Version: | unknown |
| Keywords: | Cc: |
Description
When I create new empty app and create first initial migration (on empty model) I get unusable migration script:
$ cat testit/migrations/0001_initial.py
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
pass
def backwards(self, orm):
pass
models = {
}
complete_apps = ['testit']
(v7.4, not available in ticket selectbox)
Attachments
Change History
Changed 13 months ago by nexus@…
- Attachment south.patch added
comment:1 Changed 13 months ago by andrew
- Status changed from new to closed
- Resolution set to worksforme
Already fixed in [b66bae4989c6].
Note: See
TracTickets for help on using
tickets.

patch for south 0.7.4 that fixes this issue