Ticket #1064 (closed defect: worksforme)

Opened 4 years ago

Last modified 4 years ago

bad indent of "pass" when creating empty initial migration

Reported by: nexus@… Owned by: andrew
Priority: major Milestone:
Component: commands Version: unknown
Keywords: Cc:


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):
    def backwards(self, orm):
    models = {

    complete_apps = ['testit']

(v7.4, not available in ticket selectbox)


south.patch (779 bytes) - added by nexus@… 4 years ago.
patch for south 0.7.4 that fixes this issue

Change History

Changed 4 years ago by nexus@…

patch for south 0.7.4 that fixes this issue

comment:1 Changed 4 years 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.