Modify

Ticket #1064 (closed defect: worksforme)

Opened 2 years ago

Last modified 2 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:

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

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

Change History

Changed 2 years ago by nexus@…

patch for south 0.7.4 that fixes this issue

comment:1 Changed 2 years ago by andrew

  • Status changed from new to closed
  • Resolution set to worksforme

Already fixed in [b66bae4989c6].

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.