django-cms-mycmsproject-toporojo / cms / plugins / picture / migrations /

from south.db import db
from django.db import models
from cms.plugins.picture.models import *

class Migration:
    depends_on = (
        ("cms", "0001_initial"),

    def forwards(self, orm):
        # Adding model 'Picture'
        db.create_table('picture_picture', (
            ('link', models.CharField(_("link"), max_length=255, null=True, blank=True)),
            ('image', models.ImageField(_("image"), upload_to=CMSPlugin.get_media_path)),
            ('cmsplugin_ptr', models.OneToOneField(orm['cms.CMSPlugin'])),
            ('alt', models.CharField(_("alternate text"), max_length=255, null=True, blank=True)),
        db.send_create_signal('picture', ['Picture'])
    def backwards(self, orm):
        # Deleting model 'Picture'
    models = {
        'cms.cmsplugin': {
            '_stub': True,
            'id': ('models.AutoField', [], {'primary_key': 'True'})
        '': {
            'Meta': {'ordering': "('tree_id','lft')"},
            '_stub': True,
            'id': ('models.AutoField', [], {'primary_key': 'True'})
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.