1. Jay Baird
  2. Ochs

Source

Ochs / ochs_media / migrations / 0004_adjust_embed_object.py


from south.db import db
from django.db import models
from ochs_media.models import *

class Migration:
    
    def forwards(self, orm):
        
        # Changing field 'MediaEmbed.embed_object'
        # (to signature: django.db.models.fields.TextField(null=True, blank=True))
        db.alter_column('ochs_media_mediaembed', 'embed_object', orm['ochs_media.mediaembed:embed_object'])
        
        # Changing field 'MediaEmbed.media_type'
        # (to signature: django.db.models.fields.CharField(max_length=25))
        db.alter_column('ochs_media_mediaembed', 'media_type', orm['ochs_media.mediaembed:media_type'])
        
    
    
    def backwards(self, orm):
        
        # Changing field 'MediaEmbed.embed_object'
        # (to signature: django.db.models.fields.TextField())
        db.alter_column('ochs_media_mediaembed', 'embed_object', orm['ochs_media.mediaembed:embed_object'])
        
        # Changing field 'MediaEmbed.media_type'
        # (to signature: django.db.models.fields.CharField(max_length=50))
        db.alter_column('ochs_media_mediaembed', 'media_type', orm['ochs_media.mediaembed:media_type'])
        
    
    
    models = {
        'ochs_media.mediaembed': {
            'caption': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'embed_object': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'file': ('FileBrowseField', [], {'max_length': '255'}),
            'height': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'media_type': ('django.db.models.fields.CharField', [], {'max_length': '25'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'width': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
        }
    }
    
    complete_apps = ['ochs_media']