Commits

Kai Diefenbach  committed f81e91a

Removed old migrations and fixtures

  • Participants
  • Parent commits 279fb6b
  • Tags 0.5.0b1

Comments (0)

Files changed (48)

File lfs/cart/migrations/0001_initial.py

-
-from south.db import db
-from django.db import models
-from lfs.cart.models import *
-
-class Migration:
-    
-    def forwards(self, orm):
-        
-        # Adding model 'CartItem'
-        db.create_table('cart_cartitem', (
-            ('amount', models.IntegerField(_(u"Quantity"), null=True, blank=True)),
-            ('product', models.ForeignKey(orm['catalog.Product'], verbose_name=_(u"Product"))),
-            ('id', models.AutoField(primary_key=True)),
-            ('cart', models.ForeignKey(orm.Cart, verbose_name=_(u"Cart"))),
-        ))
-        db.send_create_signal('cart', ['CartItem'])
-        
-        # Adding model 'Cart'
-        db.create_table('cart_cart', (
-            ('session', models.CharField(_(u"Session"), max_length=100, blank=True)),
-            ('id', models.AutoField(primary_key=True)),
-            ('user', models.ForeignKey(orm['auth.User'], null=True, verbose_name=_(u"User"), blank=True)),
-        ))
-        db.send_create_signal('cart', ['Cart'])
-        
-    
-    
-    def backwards(self, orm):
-        
-        # Deleting model 'CartItem'
-        db.delete_table('cart_cartitem')
-        
-        # Deleting model 'Cart'
-        db.delete_table('cart_cart')
-        
-    
-    
-    models = {
-        'auth.user': {
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'catalog.product': {
-            'Meta': {'ordering': '("name",)'},
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'cart.cartitem': {
-            'Meta': {'ordering': "['id']"},
-            'amount': ('models.IntegerField', ['_(u"Quantity")'], {'null': 'True', 'blank': 'True'}),
-            'cart': ('models.ForeignKey', ['Cart'], {'verbose_name': '_(u"Cart")'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'product': ('models.ForeignKey', ['Product'], {'verbose_name': '_(u"Product")'})
-        },
-        'cart.cart': {
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'session': ('models.CharField', ['_(u"Session")'], {'max_length': '100', 'blank': 'True'}),
-            'user': ('models.ForeignKey', ['User'], {'null': 'True', 'verbose_name': '_(u"User")', 'blank': 'True'})
-        }
-    }
-    
-    complete_apps = ['cart']

File lfs/cart/migrations/0002_add_cart_portlet.py

-
-from south.db import db
-from django.db import models
-from lfs.cart.models import *
-
-class Migration:
-    
-    def forwards(self, orm):
-        
-        # Adding model 'CartPortlet'
-        db.create_table('cart_cartportlet', (
-            ('id', models.AutoField(primary_key=True)),
-            ('title', models.CharField(_(u"Title"), max_length=50, blank=True)),
-        ))
-        db.send_create_signal('cart', ['CartPortlet'])
-        
-    def backwards(self, orm):
-        
-        # Deleting model 'CartPortlet'
-        db.delete_table('cart_cartportlet')
-        
-    models = {
-        'auth.user': {
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'catalog.product': {
-            'Meta': {'ordering': '("name",)'},
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'cart.cartitem': {
-            'Meta': {'ordering': "['id']"},
-            'amount': ('models.IntegerField', ['_(u"Quantity")'], {'null': 'True', 'blank': 'True'}),
-            'cart': ('models.ForeignKey', ["orm['cart.Cart']"], {'verbose_name': '_(u"Cart")'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'verbose_name': '_(u"Product")'})
-        },
-        'cart.cart': {
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'session': ('models.CharField', ['_(u"Session")'], {'max_length': '100', 'blank': 'True'}),
-            'user': ('models.ForeignKey', ["orm['auth.User']"], {'null': 'True', 'verbose_name': '_(u"User")', 'blank': 'True'})
-        },
-        'cart.cartportlet': {
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'title': ('models.CharField', ['_(u"Title")'], {'max_length': '50', 'blank': 'True'})
-        }
-    }
-    
-    complete_apps = ['cart']

File lfs/cart/migrations/0003_add_date_fields.py

-
-from south.db import db
-from django.db import models
-from lfs.cart.models import *
-
-class Migration:
-    
-    def forwards(self, orm):
-        
-        # Adding field 'CartItem.creation_date'
-        db.add_column('cart_cartitem', 'creation_date', models.DateTimeField(_(u"Creation date"), auto_now_add=True))
-        
-        # Adding field 'Cart.creation_date'
-        db.add_column('cart_cart', 'creation_date', models.DateTimeField(_(u"Creation date"), auto_now_add=True))
-        
-        # Adding field 'CartItem.modification_date'
-        db.add_column('cart_cartitem', 'modification_date', models.DateTimeField(_(u"Modification date"), auto_now=True, auto_now_add=True))
-        
-        # Adding field 'Cart.modification_date'
-        db.add_column('cart_cart', 'modification_date', models.DateTimeField(_(u"Modification date"), auto_now=True, auto_now_add=True))
-        
-    def backwards(self, orm):
-        
-        # Deleting field 'CartItem.creation_date'
-        db.delete_column('cart_cartitem', 'creation_date')
-        
-        # Deleting field 'Cart.creation_date'
-        db.delete_column('cart_cart', 'creation_date')
-        
-        # Deleting field 'CartItem.modification_date'
-        db.delete_column('cart_cartitem', 'modification_date')
-        
-        # Deleting field 'Cart.modification_date'
-        db.delete_column('cart_cart', 'modification_date')
-            
-    models = {
-        'auth.user': {
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'catalog.product': {
-            'Meta': {'ordering': '("name",)'},
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'cart.cartitem': {
-            'Meta': {'ordering': "['id']"},
-            'amount': ('models.IntegerField', ['_(u"Quantity")'], {'null': 'True', 'blank': 'True'}),
-            'cart': ('models.ForeignKey', ["orm['cart.Cart']"], {}),
-            'creation_date': ('models.DateTimeField', ['_(u"Creation date")'], {'auto_now_add': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'modification_date': ('models.DateTimeField', ['_(u"Modification date")'], {'auto_now': 'True', 'auto_now_add': 'True'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {})
-        },
-        'cart.cart': {
-            'creation_date': ('models.DateTimeField', ['_(u"Creation date")'], {'auto_now_add': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'modification_date': ('models.DateTimeField', ['_(u"Modification date")'], {'auto_now': 'True', 'auto_now_add': 'True'}),
-            'session': ('models.CharField', ['_(u"Session")'], {'max_length': '100', 'blank': 'True'}),
-            'user': ('models.ForeignKey', ["orm['auth.User']"], {'null': 'True', 'blank': 'True'})
-        }
-    }
-    
-    complete_apps = ['cart']

File lfs/cart/migrations/__init__.py

Empty file removed.

File lfs/catalog/migrations/0001_initial.py

-
-from south.db import db
-from django.db import models
-from lfs.catalog.models import *
-
-class Migration:
-    
-    def forwards(self, orm):
-        
-        # Adding model 'ProductPropertyValue'
-        db.create_table('catalog_productpropertyvalue', (
-            ('id', models.AutoField(primary_key=True)),
-            ('product', models.ForeignKey(orm.Product, related_name="property_values", verbose_name=_(u"Product"))),
-            ('parent_id', models.IntegerField(null=True, blank=True)),
-            ('property', models.ForeignKey(orm.Property, related_name="property_values", verbose_name=_(u"Property"))),
-            ('value', models.CharField(max_length=100, blank=True)),
-            ('value_as_float', models.FloatField(null=True, blank=True)),
-        ))
-        db.send_create_signal('catalog', ['ProductPropertyValue'])
-        
-        # Adding model 'StaticBlock'
-        db.create_table('catalog_staticblock', (
-            ('id', models.AutoField(primary_key=True)),
-            ('name', models.CharField(_(u"Name"), max_length=30)),
-            ('html', models.TextField(_(u"HTML"), blank=True)),
-        ))
-        db.send_create_signal('catalog', ['StaticBlock'])
-        
-        # Adding model 'PropertyGroup'
-        db.create_table('catalog_propertygroup', (
-            ('id', models.AutoField(primary_key=True)),
-            ('name', models.CharField(max_length=50, blank=True)),
-        ))
-        db.send_create_signal('catalog', ['PropertyGroup'])
-        
-        # Adding model 'Category'
-        db.create_table('catalog_category', (
-            ('id', models.AutoField(primary_key=True)),
-            ('name', models.CharField(_(u"Name"), max_length=50)),
-            ('slug', models.SlugField(_(u"Slug"), unique=True)),
-            ('parent', models.ForeignKey(orm.Category, null=True, verbose_name=_(u"Parent"), blank=True)),
-            ('show_all_products', models.BooleanField(_(u"Show all products"), default=True)),
-            ('short_description', models.TextField(_(u"Short description"), blank=True)),
-            ('description', models.TextField(_(u"Description"), blank=True)),
-            ('image', ImageWithThumbsField(_(u"Image"), null=True, sizes=((60,60),(100,100),(200,200),(400,400)), blank=True)),
-            ('position', models.IntegerField(_(u"Position"), default=1000)),
-            ('static_block', models.ForeignKey(orm.StaticBlock, related_name="categories", null=True, verbose_name=_(u"Static block"), blank=True)),
-            ('content', models.IntegerField(_(u"Content"), default=1)),
-            ('active_formats', models.BooleanField(_(u"Active formats"), default=False)),
-            ('product_rows', models.IntegerField(_(u"Product rows"), default=3)),
-            ('product_cols', models.IntegerField(_(u"Product cols"), default=3)),
-            ('category_cols', models.IntegerField(_(u"Category cols"), default=3)),
-            ('meta_keywords', models.TextField(_(u"Meta keywords"), blank=True)),
-            ('meta_description', models.TextField(_(u"Meta description"), blank=True)),
-        ))
-        db.send_create_signal('catalog', ['Category'])
-        
-        # Adding model 'ProductAccessories'
-        db.create_table('catalog_productaccessories', (
-            ('id', models.AutoField(primary_key=True)),
-            ('product', models.ForeignKey(orm.Product, related_name="productaccessories_product", verbose_name=_(u"Product"))),
-            ('accessory', models.ForeignKey(orm.Product, related_name="productaccessories_accessory", verbose_name=_(u"Acessory"))),
-            ('position', models.IntegerField(_(u"Position"), default=999)),
-            ('quantity', models.FloatField(_(u"Quantity"), default=1)),
-        ))
-        db.send_create_signal('catalog', ['ProductAccessories'])
-        
-        # Adding model 'FilterStep'
-        db.create_table('catalog_filterstep', (
-            ('id', models.AutoField(primary_key=True)),
-            ('property', models.ForeignKey(orm.Property, related_name="steps", verbose_name=_(u"Property"))),
-            ('start', models.FloatField()),
-        ))
-        db.send_create_signal('catalog', ['FilterStep'])
-        
-        # Adding model 'Product'
-        db.create_table('catalog_product', (
-            ('id', models.AutoField(primary_key=True)),
-            ('name', models.CharField(_(u"Name"), max_length=80)),
-            ('slug', models.SlugField(_(u"Slug"), max_length=80, unique=True)),
-            ('sku', models.CharField(_(u"SKU"), max_length=30, blank=True)),
-            ('price', models.FloatField(_(u"Price"), default=0.0)),
-            ('effective_price', models.FloatField(_(u"Price"), blank=True)),
-            ('short_description', models.TextField(_(u"Short description"), blank=True)),
-            ('description', models.TextField(_(u"Description"), blank=True)),
-            ('meta_keywords', models.TextField(_(u"Meta keywords"), blank=True)),
-            ('meta_description', models.TextField(_(u"Meta description"), blank=True)),
-            ('for_sale', models.BooleanField(_(u"For sale"), default=False)),
-            ('for_sale_price', models.FloatField(_(u"For sale price"), default=0.0)),
-            ('active', models.BooleanField(_(u"Active"), default=False)),
-            ('creation_date', models.DateTimeField(_(u"Creation date"), auto_now_add=True)),
-            ('deliverable', models.BooleanField(_(u"Deliverable"), default=True)),
-            ('manual_delivery_time', models.BooleanField(_(u"Manual delivery time"), default=False)),
-            ('delivery_time', models.ForeignKey(orm.DeliveryTime, related_name="products_delivery_time", null=True, verbose_name=_(u"Delivery time"), blank=True)),
-            ('order_time', models.ForeignKey(orm.DeliveryTime, related_name="products_order_time", null=True, verbose_name=_(u"Order time"), blank=True)),
-            ('ordered_at', models.DateField(_(u"Ordered at"), null=True, blank=True)),
-            ('manage_stock_amount', models.BooleanField(_(u"Manage stock amount"), default=True)),
-            ('stock_amount', models.DecimalField(_(u"Stock amount"), default=0, max_digits=3, decimal_places=1)),
-            ('weight', models.FloatField(_(u"Weight"), default=0.0)),
-            ('height', models.FloatField(_(u"Height"), default=0.0)),
-            ('length', models.FloatField(_(u"Length"), default=0.0)),
-            ('width', models.FloatField(_(u"Width"), default=0.0)),
-            ('tax', models.ForeignKey(orm['tax.Tax'], null=True, verbose_name=_(u"Tax"), blank=True)),
-            ('sub_type', models.CharField(_(u"Subtype"), default='0', max_length=10)),
-            ('default_variant', models.ForeignKey(orm.Product, null=True, verbose_name=_(u"Default variant"), blank=True)),
-            ('variants_display_type', models.IntegerField(_(u"Variants display type"), default=0)),
-            ('parent', models.ForeignKey(orm.Product, related_name="variants", null=True, verbose_name=_(u"Parent"), blank=True)),
-            ('active_name', models.BooleanField(_(u"Active name"), default=True)),
-            ('active_sku', models.BooleanField(_(u"Active SKU"), default=True)),
-            ('active_short_description', models.BooleanField(_(u"Active short description"), default=False)),
-            ('active_description', models.BooleanField(_(u"Active description"), default=False)),
-            ('active_price', models.BooleanField(_(u"Active Price"), default=True)),
-            ('active_images', models.BooleanField(_(u"Active Images"), default=False)),
-            ('active_related_products', models.BooleanField(_(u"Active related products"), default=False)),
-            ('active_accessories', models.BooleanField(_(u"Active accessories"), default=False)),
-            ('active_meta_description', models.BooleanField(_(u"Active meta description"), default=False)),
-            ('active_meta_keywords', models.BooleanField(_(u"Active meta keywords"), default=False)),
-        ))
-        db.send_create_signal('catalog', ['Product'])
-        
-        # Adding model 'DeliveryTime'
-        db.create_table('catalog_deliverytime', (
-            ('id', models.AutoField(primary_key=True)),
-            ('min', models.FloatField(_(u"Min"))),
-            ('max', models.FloatField(_(u"Max"))),
-            ('unit', models.PositiveSmallIntegerField(_(u"Unit"), default=2)),
-            ('description', models.TextField(_(u"Description"), blank=True)),
-        ))
-        db.send_create_signal('catalog', ['DeliveryTime'])
-        
-        # Adding model 'PropertyOption'
-        db.create_table('catalog_propertyoption', (
-            ('id', models.AutoField(primary_key=True)),
-            ('property', models.ForeignKey(orm.Property, related_name="options", verbose_name=_(u"Property"))),
-            ('name', models.CharField(_(u"Name"), max_length=30)),
-            ('price', models.FloatField(_(u"Price"), default=0.0, null=True, blank=True)),
-            ('position', models.IntegerField(_(u"Position"), default=99)),
-        ))
-        db.send_create_signal('catalog', ['PropertyOption'])
-        
-        # Adding model 'ProductsPropertiesRelation'
-        db.create_table('catalog_productspropertiesrelation', (
-            ('id', models.AutoField(primary_key=True)),
-            ('product', models.ForeignKey(orm.Product, related_name="productsproperties", verbose_name=_(u"Product"))),
-            ('property', models.ForeignKey(orm.Property, verbose_name=_(u"Property"))),
-            ('position', models.IntegerField(_(u"Position"), default=999)),
-        ))
-        db.send_create_signal('catalog', ['ProductsPropertiesRelation'])
-        
-        # Adding model 'Image'
-        db.create_table('catalog_image', (
-            ('id', models.AutoField(primary_key=True)),
-            ('content_type', models.ForeignKey(orm['contenttypes.ContentType'], related_name="image", null=True, verbose_name=_(u"Content type"), blank=True)),
-            ('content_id', models.PositiveIntegerField(_(u"Content id"), null=True, blank=True)),
-            ('title', models.CharField(_(u"Title"), max_length=100, blank=True)),
-            ('image', ImageWithThumbsField(_(u"Image"), null=True, sizes=((60,60),(100,100),(200,200),(400,400)), blank=True)),
-            ('position', models.PositiveSmallIntegerField(_(u"Position"), default=999)),
-        ))
-        db.send_create_signal('catalog', ['Image'])
-        
-        # Adding model 'GroupsPropertiesRelation'
-        db.create_table('catalog_groupspropertiesrelation', (
-            ('id', models.AutoField(primary_key=True)),
-            ('group', models.ForeignKey(orm.PropertyGroup, related_name="groupproperties", verbose_name=_(u"Group"))),
-            ('property', models.ForeignKey(orm.Property, verbose_name=_(u"Property"))),
-            ('position', models.IntegerField(_(u"Position"), default=999)),
-        ))
-        db.send_create_signal('catalog', ['GroupsPropertiesRelation'])
-        
-        # Adding model 'Property'
-        db.create_table('catalog_property', (
-            ('id', models.AutoField(primary_key=True)),
-            ('name', models.CharField(_(u"Name"), max_length=50)),
-            ('position', models.IntegerField(_(u"Position"), null=True, blank=True)),
-            ('unit', models.CharField(_(u"Unit"), max_length=15, blank=True)),
-            ('display_on_product', models.BooleanField(_(u"Display on product"), default=True)),
-            ('local', models.BooleanField(default=False)),
-            ('filterable', models.BooleanField(default=True)),
-            ('display_no_results', models.BooleanField(_(u"Display no results"), default=False)),
-            ('type', models.PositiveSmallIntegerField(_(u"Type"), default=2)),
-            ('step_type', models.PositiveSmallIntegerField(_(u"Step type"), default=1)),
-            ('step', models.IntegerField(_(u"Step"), null=True, blank=True)),
-        ))
-        db.send_create_signal('catalog', ['Property'])
-        
-        # Adding ManyToManyField 'Product.related_products'
-        db.create_table('catalog_product_related_products', (
-            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
-            ('from_product', models.ForeignKey(orm.Product, null=False)),
-            ('to_product', models.ForeignKey(orm.Product, null=False))
-        ))
-        
-        # Adding ManyToManyField 'PropertyGroup.products'
-        db.create_table('catalog_propertygroup_products', (
-            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
-            ('propertygroup', models.ForeignKey(orm.PropertyGroup, null=False)),
-            ('product', models.ForeignKey(orm.Product, null=False))
-        ))
-        
-        # Adding ManyToManyField 'Category.products'
-        db.create_table('catalog_category_products', (
-            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
-            ('category', models.ForeignKey(orm.Category, null=False)),
-            ('product', models.ForeignKey(orm.Product, null=False))
-        ))
-        
-        # Creating unique_together for [product, property] on ProductsPropertiesRelation.
-        db.create_unique('catalog_productspropertiesrelation', ['product_id', 'property_id'])
-        
-        # Creating unique_together for [product, property, value] on ProductPropertyValue.
-        db.create_unique('catalog_productpropertyvalue', ['product_id', 'property_id', 'value'])
-        
-        # Creating unique_together for [group, property] on GroupsPropertiesRelation.
-        db.create_unique('catalog_groupspropertiesrelation', ['group_id', 'property_id'])
-        
-    
-    
-    def backwards(self, orm):
-        
-        # Deleting model 'ProductPropertyValue'
-        db.delete_table('catalog_productpropertyvalue')
-        
-        # Deleting model 'StaticBlock'
-        db.delete_table('catalog_staticblock')
-        
-        # Deleting model 'PropertyGroup'
-        db.delete_table('catalog_propertygroup')
-        
-        # Deleting model 'Category'
-        db.delete_table('catalog_category')
-        
-        # Deleting model 'ProductAccessories'
-        db.delete_table('catalog_productaccessories')
-        
-        # Deleting model 'FilterStep'
-        db.delete_table('catalog_filterstep')
-        
-        # Deleting model 'Product'
-        db.delete_table('catalog_product')
-        
-        # Deleting model 'DeliveryTime'
-        db.delete_table('catalog_deliverytime')
-        
-        # Deleting model 'PropertyOption'
-        db.delete_table('catalog_propertyoption')
-        
-        # Deleting model 'ProductsPropertiesRelation'
-        db.delete_table('catalog_productspropertiesrelation')
-        
-        # Deleting model 'Image'
-        db.delete_table('catalog_image')
-        
-        # Deleting model 'GroupsPropertiesRelation'
-        db.delete_table('catalog_groupspropertiesrelation')
-        
-        # Deleting model 'Property'
-        db.delete_table('catalog_property')
-        
-        # Dropping ManyToManyField 'Product.related_products'
-        db.delete_table('catalog_product_related_products')
-        
-        # Dropping ManyToManyField 'PropertyGroup.products'
-        db.delete_table('catalog_propertygroup_products')
-        
-        # Dropping ManyToManyField 'Category.products'
-        db.delete_table('catalog_category_products')
-        
-        # Deleting unique_together for [product, property] on ProductsPropertiesRelation.
-        db.delete_unique('catalog_productspropertiesrelation', ['product_id', 'property_id'])
-        
-        # Deleting unique_together for [product, property, value] on ProductPropertyValue.
-        db.delete_unique('catalog_productpropertyvalue', ['product_id', 'property_id', 'value'])
-        
-        # Deleting unique_together for [group, property] on GroupsPropertiesRelation.
-        db.delete_unique('catalog_groupspropertiesrelation', ['group_id', 'property_id'])
-        
-    
-    
-    models = {
-        'catalog.productpropertyvalue': {
-            'Meta': {'unique_together': '("product","property","value")'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'parent_id': ('models.IntegerField', [], {'null': 'True', 'blank': 'True'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"property_values"', 'verbose_name': '_(u"Product")'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"property_values"', 'verbose_name': '_(u"Property")'}),
-            'value': ('models.CharField', [], {'max_length': '100', 'blank': 'True'}),
-            'value_as_float': ('models.FloatField', [], {'null': 'True', 'blank': 'True'})
-        },
-        'catalog.staticblock': {
-            'html': ('models.TextField', ['_(u"HTML")'], {'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '30'})
-        },
-        'catalog.propertygroup': {
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', [], {'max_length': '50', 'blank': 'True'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"property_groups"', 'verbose_name': '_(u"Products")'})
-        },
-        'contenttypes.contenttype': {
-            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label','model'),)", 'db_table': "'django_content_type'"},
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'catalog.category': {
-            'Meta': {'ordering': '("position",)'},
-            'active_formats': ('models.BooleanField', ['_(u"Active formats")'], {'default': 'False'}),
-            'category_cols': ('models.IntegerField', ['_(u"Category cols")'], {'default': '3'}),
-            'content': ('models.IntegerField', ['_(u"Content")'], {'default': '1'}),
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'image': ('ImageWithThumbsField', ['_(u"Image")'], {'null': 'True', 'sizes': '((60,60),(100,100),(200,200),(400,400))', 'blank': 'True'}),
-            'meta_description': ('models.TextField', ['_(u"Meta description")'], {'blank': 'True'}),
-            'meta_keywords': ('models.TextField', ['_(u"Meta keywords")'], {'blank': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '50'}),
-            'parent': ('models.ForeignKey', ["orm['catalog.Category']"], {'null': 'True', 'verbose_name': '_(u"Parent")', 'blank': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '1000'}),
-            'product_cols': ('models.IntegerField', ['_(u"Product cols")'], {'default': '3'}),
-            'product_rows': ('models.IntegerField', ['_(u"Product rows")'], {'default': '3'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"categories"', 'verbose_name': '_(u"Products")', 'blank': 'True'}),
-            'short_description': ('models.TextField', ['_(u"Short description")'], {'blank': 'True'}),
-            'show_all_products': ('models.BooleanField', ['_(u"Show all products")'], {'default': 'True'}),
-            'slug': ('models.SlugField', ['_(u"Slug")'], {'unique': 'True'}),
-            'static_block': ('models.ForeignKey', ["orm['catalog.StaticBlock']"], {'related_name': '"categories"', 'null': 'True', 'verbose_name': '_(u"Static block")', 'blank': 'True'})
-        },
-        'catalog.productaccessories': {
-            'Meta': {'ordering': '("position",)'},
-            'accessory': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productaccessories_accessory"', 'verbose_name': '_(u"Acessory")'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productaccessories_product"', 'verbose_name': '_(u"Product")'}),
-            'quantity': ('models.FloatField', ['_(u"Quantity")'], {'default': '1'})
-        },
-        'catalog.filterstep': {
-            'Meta': {'ordering': '["start"]'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"steps"', 'verbose_name': '_(u"Property")'}),
-            'start': ('models.FloatField', [], {})
-        },
-        'catalog.product': {
-            'Meta': {'ordering': '("name",)'},
-            'accessories': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"reverse_accessories"', 'through': '"ProductAccessories"', 'blank': 'True', 'symmetrical': 'False', 'null': 'True', 'verbose_name': '_(u"Acessories")'}),
-            'active': ('models.BooleanField', ['_(u"Active")'], {'default': 'False'}),
-            'active_accessories': ('models.BooleanField', ['_(u"Active accessories")'], {'default': 'False'}),
-            'active_description': ('models.BooleanField', ['_(u"Active description")'], {'default': 'False'}),
-            'active_images': ('models.BooleanField', ['_(u"Active Images")'], {'default': 'False'}),
-            'active_meta_description': ('models.BooleanField', ['_(u"Active meta description")'], {'default': 'False'}),
-            'active_meta_keywords': ('models.BooleanField', ['_(u"Active meta keywords")'], {'default': 'False'}),
-            'active_name': ('models.BooleanField', ['_(u"Active name")'], {'default': 'True'}),
-            'active_price': ('models.BooleanField', ['_(u"Active Price")'], {'default': 'True'}),
-            'active_related_products': ('models.BooleanField', ['_(u"Active related products")'], {'default': 'False'}),
-            'active_short_description': ('models.BooleanField', ['_(u"Active short description")'], {'default': 'False'}),
-            'active_sku': ('models.BooleanField', ['_(u"Active SKU")'], {'default': 'True'}),
-            'creation_date': ('models.DateTimeField', ['_(u"Creation date")'], {'auto_now_add': 'True'}),
-            'default_variant': ('models.ForeignKey', ["orm['catalog.Product']"], {'null': 'True', 'verbose_name': '_(u"Default variant")', 'blank': 'True'}),
-            'deliverable': ('models.BooleanField', ['_(u"Deliverable")'], {'default': 'True'}),
-            'delivery_time': ('models.ForeignKey', ["orm['catalog.DeliveryTime']"], {'related_name': '"products_delivery_time"', 'null': 'True', 'verbose_name': '_(u"Delivery time")', 'blank': 'True'}),
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'effective_price': ('models.FloatField', ['_(u"Price")'], {'blank': 'True'}),
-            'for_sale': ('models.BooleanField', ['_(u"For sale")'], {'default': 'False'}),
-            'for_sale_price': ('models.FloatField', ['_(u"For sale price")'], {'default': '0.0'}),
-            'height': ('models.FloatField', ['_(u"Height")'], {'default': '0.0'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'images': ('generic.GenericRelation', ["orm['catalog.Image']"], {'object_id_field': '"content_id"', 'verbose_name': '_(u"Images")', 'content_type_field': '"content_type"'}),
-            'length': ('models.FloatField', ['_(u"Length")'], {'default': '0.0'}),
-            'manage_stock_amount': ('models.BooleanField', ['_(u"Manage stock amount")'], {'default': 'True'}),
-            'manual_delivery_time': ('models.BooleanField', ['_(u"Manual delivery time")'], {'default': 'False'}),
-            'meta_description': ('models.TextField', ['_(u"Meta description")'], {'blank': 'True'}),
-            'meta_keywords': ('models.TextField', ['_(u"Meta keywords")'], {'blank': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '80'}),
-            'order_time': ('models.ForeignKey', ["orm['catalog.DeliveryTime']"], {'related_name': '"products_order_time"', 'null': 'True', 'verbose_name': '_(u"Order time")', 'blank': 'True'}),
-            'ordered_at': ('models.DateField', ['_(u"Ordered at")'], {'null': 'True', 'blank': 'True'}),
-            'parent': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"variants"', 'null': 'True', 'verbose_name': '_(u"Parent")', 'blank': 'True'}),
-            'price': ('models.FloatField', ['_(u"Price")'], {'default': '0.0'}),
-            'related_products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"reverse_related_products"', 'symmetrical': 'False', 'null': 'True', 'verbose_name': '_(u"Related products")', 'blank': 'True'}),
-            'short_description': ('models.TextField', ['_(u"Short description")'], {'blank': 'True'}),
-            'sku': ('models.CharField', ['_(u"SKU")'], {'max_length': '30', 'blank': 'True'}),
-            'slug': ('models.SlugField', ['_(u"Slug")'], {'max_length': '80', 'unique': 'True'}),
-            'stock_amount': ('models.DecimalField', ['_(u"Stock amount")'], {'default': '0', 'max_digits': '3', 'decimal_places': '1'}),
-            'sub_type': ('models.CharField', ['_(u"Subtype")'], {'default': "'0'", 'max_length': '10'}),
-            'tax': ('models.ForeignKey', ["orm['tax.Tax']"], {'null': 'True', 'verbose_name': '_(u"Tax")', 'blank': 'True'}),
-            'variants_display_type': ('models.IntegerField', ['_(u"Variants display type")'], {'default': '0'}),
-            'weight': ('models.FloatField', ['_(u"Weight")'], {'default': '0.0'}),
-            'width': ('models.FloatField', ['_(u"Width")'], {'default': '0.0'})
-        },
-        'catalog.deliverytime': {
-            'Meta': {'ordering': '("min",)'},
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'max': ('models.FloatField', ['_(u"Max")'], {}),
-            'min': ('models.FloatField', ['_(u"Min")'], {}),
-            'unit': ('models.PositiveSmallIntegerField', ['_(u"Unit")'], {'default': '2'})
-        },
-        'catalog.propertyoption': {
-            'Meta': {'ordering': '["position"]'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '30'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '99'}),
-            'price': ('models.FloatField', ['_(u"Price")'], {'default': '0.0', 'null': 'True', 'blank': 'True'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"options"', 'verbose_name': '_(u"Property")'})
-        },
-        'catalog.productspropertiesrelation': {
-            'Meta': {'ordering': '("position",)', 'unique_together': '("product","property")'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productsproperties"', 'verbose_name': '_(u"Product")'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'verbose_name': '_(u"Property")'})
-        },
-        'catalog.image': {
-            'Meta': {'ordering': '("position",)'},
-            'content_id': ('models.PositiveIntegerField', ['_(u"Content id")'], {'null': 'True', 'blank': 'True'}),
-            'content_type': ('models.ForeignKey', ["orm['contenttypes.ContentType']"], {'related_name': '"image"', 'null': 'True', 'verbose_name': '_(u"Content type")', 'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'image': ('ImageWithThumbsField', ['_(u"Image")'], {'null': 'True', 'sizes': '((60,60),(100,100),(200,200),(400,400))', 'blank': 'True'}),
-            'position': ('models.PositiveSmallIntegerField', ['_(u"Position")'], {'default': '999'}),
-            'title': ('models.CharField', ['_(u"Title")'], {'max_length': '100', 'blank': 'True'})
-        },
-        'catalog.groupspropertiesrelation': {
-            'Meta': {'ordering': '("position",)', 'unique_together': '("group","property")'},
-            'group': ('models.ForeignKey', ["orm['catalog.PropertyGroup']"], {'related_name': '"groupproperties"', 'verbose_name': '_(u"Group")'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'verbose_name': '_(u"Property")'})
-        },
-        'tax.tax': {
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'catalog.property': {
-            'Meta': {'ordering': '["position"]'},
-            'display_no_results': ('models.BooleanField', ['_(u"Display no results")'], {'default': 'False'}),
-            'display_on_product': ('models.BooleanField', ['_(u"Display on product")'], {'default': 'True'}),
-            'filterable': ('models.BooleanField', [], {'default': 'True'}),
-            'groups': ('models.ManyToManyField', ["orm['catalog.PropertyGroup']"], {'related_name': '"properties"', 'through': '"GroupsPropertiesRelation"', 'null': 'True', 'verbose_name': '_(u"Group")', 'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'local': ('models.BooleanField', [], {'default': 'False'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '50'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'null': 'True', 'blank': 'True'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"properties"', 'through': '"ProductsPropertiesRelation"', 'null': 'True', 'verbose_name': '_(u"Products")', 'blank': 'True'}),
-            'step': ('models.IntegerField', ['_(u"Step")'], {'null': 'True', 'blank': 'True'}),
-            'step_type': ('models.PositiveSmallIntegerField', ['_(u"Step type")'], {'default': '1'}),
-            'type': ('models.PositiveSmallIntegerField', ['_(u"Type")'], {'default': '2'}),
-            'unit': ('models.CharField', ['_(u"Unit")'], {'max_length': '15', 'blank': 'True'})
-        }
-    }
-    
-    complete_apps = ['catalog']

File lfs/catalog/migrations/0002_changed_stock_amount.py

-
-from south.db import db
-from django.db import models
-from lfs.catalog.models import *
-
-class Migration:
-    
-    def forwards(self, orm):
-        
-        # Changing field 'Product.stock_amount'
-        db.alter_column('catalog_product', 'stock_amount', models.FloatField(_(u"Stock amount"), default=0))
-        
-    
-    
-    def backwards(self, orm):
-        
-        # Changing field 'Product.stock_amount'
-        db.alter_column('catalog_product', 'stock_amount', models.DecimalField(_(u"Stock amount"), default=0, max_digits=3, decimal_places=1))
-        
-    
-    
-    models = {
-        'catalog.productpropertyvalue': {
-            'Meta': {'unique_together': '("product","property","value")'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'parent_id': ('models.IntegerField', [], {'null': 'True', 'blank': 'True'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"property_values"', 'verbose_name': '_(u"Product")'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"property_values"', 'verbose_name': '_(u"Property")'}),
-            'value': ('models.CharField', [], {'max_length': '100', 'blank': 'True'}),
-            'value_as_float': ('models.FloatField', [], {'null': 'True', 'blank': 'True'})
-        },
-        'catalog.staticblock': {
-            'html': ('models.TextField', ['_(u"HTML")'], {'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '30'})
-        },
-        'catalog.propertygroup': {
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', [], {'max_length': '50', 'blank': 'True'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"property_groups"', 'verbose_name': '_(u"Products")'})
-        },
-        'contenttypes.contenttype': {
-            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label','model'),)", 'db_table': "'django_content_type'"},
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'catalog.category': {
-            'Meta': {'ordering': '("position",)'},
-            'active_formats': ('models.BooleanField', ['_(u"Active formats")'], {'default': 'False'}),
-            'category_cols': ('models.IntegerField', ['_(u"Category cols")'], {'default': '3'}),
-            'content': ('models.IntegerField', ['_(u"Content")'], {'default': '1'}),
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'image': ('ImageWithThumbsField', ['_(u"Image")'], {'null': 'True', 'sizes': '((60,60),(100,100),(200,200),(400,400))', 'blank': 'True'}),
-            'meta_description': ('models.TextField', ['_(u"Meta description")'], {'blank': 'True'}),
-            'meta_keywords': ('models.TextField', ['_(u"Meta keywords")'], {'blank': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '50'}),
-            'parent': ('models.ForeignKey', ["orm['catalog.Category']"], {'null': 'True', 'verbose_name': '_(u"Parent")', 'blank': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '1000'}),
-            'product_cols': ('models.IntegerField', ['_(u"Product cols")'], {'default': '3'}),
-            'product_rows': ('models.IntegerField', ['_(u"Product rows")'], {'default': '3'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"categories"', 'verbose_name': '_(u"Products")', 'blank': 'True'}),
-            'short_description': ('models.TextField', ['_(u"Short description")'], {'blank': 'True'}),
-            'show_all_products': ('models.BooleanField', ['_(u"Show all products")'], {'default': 'True'}),
-            'slug': ('models.SlugField', ['_(u"Slug")'], {'unique': 'True'}),
-            'static_block': ('models.ForeignKey', ["orm['catalog.StaticBlock']"], {'related_name': '"categories"', 'null': 'True', 'verbose_name': '_(u"Static block")', 'blank': 'True'})
-        },
-        'catalog.productaccessories': {
-            'Meta': {'ordering': '("position",)'},
-            'accessory': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productaccessories_accessory"', 'verbose_name': '_(u"Acessory")'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productaccessories_product"', 'verbose_name': '_(u"Product")'}),
-            'quantity': ('models.FloatField', ['_(u"Quantity")'], {'default': '1'})
-        },
-        'catalog.filterstep': {
-            'Meta': {'ordering': '["start"]'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"steps"', 'verbose_name': '_(u"Property")'}),
-            'start': ('models.FloatField', [], {})
-        },
-        'catalog.product': {
-            'Meta': {'ordering': '("name",)'},
-            'accessories': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"reverse_accessories"', 'through': '"ProductAccessories"', 'blank': 'True', 'symmetrical': 'False', 'null': 'True', 'verbose_name': '_(u"Acessories")'}),
-            'active': ('models.BooleanField', ['_(u"Active")'], {'default': 'False'}),
-            'active_accessories': ('models.BooleanField', ['_(u"Active accessories")'], {'default': 'False'}),
-            'active_description': ('models.BooleanField', ['_(u"Active description")'], {'default': 'False'}),
-            'active_images': ('models.BooleanField', ['_(u"Active Images")'], {'default': 'False'}),
-            'active_meta_description': ('models.BooleanField', ['_(u"Active meta description")'], {'default': 'False'}),
-            'active_meta_keywords': ('models.BooleanField', ['_(u"Active meta keywords")'], {'default': 'False'}),
-            'active_name': ('models.BooleanField', ['_(u"Active name")'], {'default': 'True'}),
-            'active_price': ('models.BooleanField', ['_(u"Active Price")'], {'default': 'True'}),
-            'active_related_products': ('models.BooleanField', ['_(u"Active related products")'], {'default': 'False'}),
-            'active_short_description': ('models.BooleanField', ['_(u"Active short description")'], {'default': 'False'}),
-            'active_sku': ('models.BooleanField', ['_(u"Active SKU")'], {'default': 'True'}),
-            'creation_date': ('models.DateTimeField', ['_(u"Creation date")'], {'auto_now_add': 'True'}),
-            'default_variant': ('models.ForeignKey', ["orm['catalog.Product']"], {'null': 'True', 'verbose_name': '_(u"Default variant")', 'blank': 'True'}),
-            'deliverable': ('models.BooleanField', ['_(u"Deliverable")'], {'default': 'True'}),
-            'delivery_time': ('models.ForeignKey', ["orm['catalog.DeliveryTime']"], {'related_name': '"products_delivery_time"', 'null': 'True', 'verbose_name': '_(u"Delivery time")', 'blank': 'True'}),
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'effective_price': ('models.FloatField', ['_(u"Price")'], {'blank': 'True'}),
-            'for_sale': ('models.BooleanField', ['_(u"For sale")'], {'default': 'False'}),
-            'for_sale_price': ('models.FloatField', ['_(u"For sale price")'], {'default': '0.0'}),
-            'height': ('models.FloatField', ['_(u"Height")'], {'default': '0.0'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'images': ('generic.GenericRelation', ["orm['catalog.Image']"], {'object_id_field': '"content_id"', 'verbose_name': '_(u"Images")', 'content_type_field': '"content_type"'}),
-            'length': ('models.FloatField', ['_(u"Length")'], {'default': '0.0'}),
-            'manage_stock_amount': ('models.BooleanField', ['_(u"Manage stock amount")'], {'default': 'True'}),
-            'manual_delivery_time': ('models.BooleanField', ['_(u"Manual delivery time")'], {'default': 'False'}),
-            'meta_description': ('models.TextField', ['_(u"Meta description")'], {'blank': 'True'}),
-            'meta_keywords': ('models.TextField', ['_(u"Meta keywords")'], {'blank': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '80'}),
-            'order_time': ('models.ForeignKey', ["orm['catalog.DeliveryTime']"], {'related_name': '"products_order_time"', 'null': 'True', 'verbose_name': '_(u"Order time")', 'blank': 'True'}),
-            'ordered_at': ('models.DateField', ['_(u"Ordered at")'], {'null': 'True', 'blank': 'True'}),
-            'parent': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"variants"', 'null': 'True', 'verbose_name': '_(u"Parent")', 'blank': 'True'}),
-            'price': ('models.FloatField', ['_(u"Price")'], {'default': '0.0'}),
-            'related_products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"reverse_related_products"', 'symmetrical': 'False', 'null': 'True', 'verbose_name': '_(u"Related products")', 'blank': 'True'}),
-            'short_description': ('models.TextField', ['_(u"Short description")'], {'blank': 'True'}),
-            'sku': ('models.CharField', ['_(u"SKU")'], {'max_length': '30', 'blank': 'True'}),
-            'slug': ('models.SlugField', ['_(u"Slug")'], {'max_length': '80', 'unique': 'True'}),
-            'stock_amount': ('models.FloatField', ['_(u"Stock amount")'], {'default': '0'}),
-            'sub_type': ('models.CharField', ['_(u"Subtype")'], {'default': "'0'", 'max_length': '10'}),
-            'tax': ('models.ForeignKey', ["orm['tax.Tax']"], {'null': 'True', 'verbose_name': '_(u"Tax")', 'blank': 'True'}),
-            'variants_display_type': ('models.IntegerField', ['_(u"Variants display type")'], {'default': '0'}),
-            'weight': ('models.FloatField', ['_(u"Weight")'], {'default': '0.0'}),
-            'width': ('models.FloatField', ['_(u"Width")'], {'default': '0.0'})
-        },
-        'catalog.deliverytime': {
-            'Meta': {'ordering': '("min",)'},
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'max': ('models.FloatField', ['_(u"Max")'], {}),
-            'min': ('models.FloatField', ['_(u"Min")'], {}),
-            'unit': ('models.PositiveSmallIntegerField', ['_(u"Unit")'], {'default': '2'})
-        },
-        'catalog.propertyoption': {
-            'Meta': {'ordering': '["position"]'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '30'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '99'}),
-            'price': ('models.FloatField', ['_(u"Price")'], {'default': '0.0', 'null': 'True', 'blank': 'True'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"options"', 'verbose_name': '_(u"Property")'})
-        },
-        'catalog.productspropertiesrelation': {
-            'Meta': {'ordering': '("position",)', 'unique_together': '("product","property")'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productsproperties"', 'verbose_name': '_(u"Product")'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'verbose_name': '_(u"Property")'})
-        },
-        'catalog.image': {
-            'Meta': {'ordering': '("position",)'},
-            'content_id': ('models.PositiveIntegerField', ['_(u"Content id")'], {'null': 'True', 'blank': 'True'}),
-            'content_type': ('models.ForeignKey', ["orm['contenttypes.ContentType']"], {'related_name': '"image"', 'null': 'True', 'verbose_name': '_(u"Content type")', 'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'image': ('ImageWithThumbsField', ['_(u"Image")'], {'null': 'True', 'sizes': '((60,60),(100,100),(200,200),(400,400))', 'blank': 'True'}),
-            'position': ('models.PositiveSmallIntegerField', ['_(u"Position")'], {'default': '999'}),
-            'title': ('models.CharField', ['_(u"Title")'], {'max_length': '100', 'blank': 'True'})
-        },
-        'catalog.groupspropertiesrelation': {
-            'Meta': {'ordering': '("position",)', 'unique_together': '("group","property")'},
-            'group': ('models.ForeignKey', ["orm['catalog.PropertyGroup']"], {'related_name': '"groupproperties"', 'verbose_name': '_(u"Group")'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'verbose_name': '_(u"Property")'})
-        },
-        'tax.tax': {
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'catalog.property': {
-            'Meta': {'ordering': '["position"]'},
-            'display_no_results': ('models.BooleanField', ['_(u"Display no results")'], {'default': 'False'}),
-            'display_on_product': ('models.BooleanField', ['_(u"Display on product")'], {'default': 'True'}),
-            'filterable': ('models.BooleanField', [], {'default': 'True'}),
-            'groups': ('models.ManyToManyField', ["orm['catalog.PropertyGroup']"], {'related_name': '"properties"', 'through': '"GroupsPropertiesRelation"', 'null': 'True', 'verbose_name': '_(u"Group")', 'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'local': ('models.BooleanField', [], {'default': 'False'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '50'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'null': 'True', 'blank': 'True'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"properties"', 'through': '"ProductsPropertiesRelation"', 'null': 'True', 'verbose_name': '_(u"Products")', 'blank': 'True'}),
-            'step': ('models.IntegerField', ['_(u"Step")'], {'null': 'True', 'blank': 'True'}),
-            'step_type': ('models.PositiveSmallIntegerField', ['_(u"Step type")'], {'default': '1'}),
-            'type': ('models.PositiveSmallIntegerField', ['_(u"Type")'], {'default': '2'}),
-            'unit': ('models.CharField', ['_(u"Unit")'], {'max_length': '15', 'blank': 'True'})
-        }
-    }
-    
-    complete_apps = ['catalog']

File lfs/catalog/migrations/0003_add_for_sale_attributes.py

-
-from south.db import db
-from django.db import models
-from lfs.catalog.models import *
-
-class Migration:
-    
-    def forwards(self, orm):
-        
-        # Adding field 'Product.active_for_sale'
-        db.add_column('catalog_product', 'active_for_sale', models.PositiveSmallIntegerField(_("Active for sale"), default=0))
-        
-        # Adding field 'Product.active_for_sale_price'
-        db.add_column('catalog_product', 'active_for_sale_price', models.BooleanField(_(u"Active for sale price"), default=True))
-    
-    def backwards(self, orm):
-        
-        # Deleting field 'Product.active_for_sale'
-        db.delete_column('catalog_product', 'active_for_sale')
-
-        # Deleting field 'Product.active_for_sale_price'
-        db.delete_column('catalog_product', 'active_for_sale_price')
-    
-    models = {
-        'catalog.productpropertyvalue': {
-            'Meta': {'unique_together': '("product","property","value")'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'parent_id': ('models.IntegerField', [], {'null': 'True', 'blank': 'True'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"property_values"'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"property_values"'}),
-            'value': ('models.CharField', [], {'max_length': '100', 'blank': 'True'}),
-            'value_as_float': ('models.FloatField', [], {'null': 'True', 'blank': 'True'})
-        },
-        'catalog.staticblock': {
-            'html': ('models.TextField', ['_(u"HTML")'], {'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '30'})
-        },
-        'catalog.propertygroup': {
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', [], {'max_length': '50', 'blank': 'True'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"property_groups"'})
-        },
-        'contenttypes.contenttype': {
-            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label','model'),)", 'db_table': "'django_content_type'"},
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'catalog.category': {
-            'Meta': {'ordering': '("position",)'},
-            'active_formats': ('models.BooleanField', ['_(u"Active formats")'], {'default': 'False'}),
-            'category_cols': ('models.IntegerField', ['_(u"Category cols")'], {'default': '3'}),
-            'content': ('models.IntegerField', ['_(u"Content")'], {'default': '1'}),
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'image': ('ImageWithThumbsField', ['_(u"Image")'], {'null': 'True', 'sizes': '((60,60),(100,100),(200,200),(400,400))', 'blank': 'True'}),
-            'meta_description': ('models.TextField', ['_(u"Meta description")'], {'blank': 'True'}),
-            'meta_keywords': ('models.TextField', ['_(u"Meta keywords")'], {'blank': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '50'}),
-            'parent': ('models.ForeignKey', ["orm['catalog.Category']"], {'null': 'True', 'blank': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '1000'}),
-            'product_cols': ('models.IntegerField', ['_(u"Product cols")'], {'default': '3'}),
-            'product_rows': ('models.IntegerField', ['_(u"Product rows")'], {'default': '3'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"categories"', 'blank': 'True'}),
-            'short_description': ('models.TextField', ['_(u"Short description")'], {'blank': 'True'}),
-            'show_all_products': ('models.BooleanField', ['_(u"Show all products")'], {'default': 'True'}),
-            'slug': ('models.SlugField', ['_(u"Slug")'], {'unique': 'True'}),
-            'static_block': ('models.ForeignKey', ["orm['catalog.StaticBlock']"], {'related_name': '"categories"', 'null': 'True', 'blank': 'True'}),
-            'uid': ('models.CharField', [], {'max_length': '50'})
-        },
-        'catalog.productaccessories': {
-            'Meta': {'ordering': '("position",)'},
-            'accessory': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productaccessories_accessory"'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productaccessories_product"'}),
-            'quantity': ('models.FloatField', ['_(u"Quantity")'], {'default': '1'})
-        },
-        'catalog.filterstep': {
-            'Meta': {'ordering': '["start"]'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"steps"'}),
-            'start': ('models.FloatField', [], {})
-        },
-        'catalog.product': {
-            'Meta': {'ordering': '("name",)'},
-            'accessories': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"reverse_accessories"', 'through': '"ProductAccessories"', 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
-            'active': ('models.BooleanField', ['_(u"Active")'], {'default': 'False'}),
-            'active_accessories': ('models.BooleanField', ['_(u"Active accessories")'], {'default': 'False'}),
-            'active_description': ('models.BooleanField', ['_(u"Active description")'], {'default': 'False'}),
-            'active_for_sale': ('models.PositiveSmallIntegerField', ['_("Active for sale")'], {'default': '0'}),
-            'active_for_sale_price': ('models.BooleanField', ['_(u"Active for sale price")'], {'default': 'True'}),
-            'active_images': ('models.BooleanField', ['_(u"Active Images")'], {'default': 'False'}),
-            'active_meta_description': ('models.BooleanField', ['_(u"Active meta description")'], {'default': 'False'}),
-            'active_meta_keywords': ('models.BooleanField', ['_(u"Active meta keywords")'], {'default': 'False'}),
-            'active_name': ('models.BooleanField', ['_(u"Active name")'], {'default': 'True'}),
-            'active_price': ('models.BooleanField', ['_(u"Active price")'], {'default': 'True'}),
-            'active_related_products': ('models.BooleanField', ['_(u"Active related products")'], {'default': 'False'}),
-            'active_short_description': ('models.BooleanField', ['_(u"Active short description")'], {'default': 'False'}),
-            'active_sku': ('models.BooleanField', ['_(u"Active SKU")'], {'default': 'True'}),
-            'creation_date': ('models.DateTimeField', ['_(u"Creation date")'], {'auto_now_add': 'True'}),
-            'default_variant': ('models.ForeignKey', ["orm['catalog.Product']"], {'null': 'True', 'blank': 'True'}),
-            'deliverable': ('models.BooleanField', ['_(u"Deliverable")'], {'default': 'True'}),
-            'delivery_time': ('models.ForeignKey', ["orm['catalog.DeliveryTime']"], {'related_name': '"products_delivery_time"', 'null': 'True', 'blank': 'True'}),
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'effective_price': ('models.FloatField', ['_(u"Price")'], {'blank': 'True'}),
-            'for_sale': ('models.BooleanField', ['_(u"For sale")'], {'default': 'False'}),
-            'for_sale_price': ('models.FloatField', ['_(u"For sale price")'], {'default': '0.0'}),
-            'height': ('models.FloatField', ['_(u"Height")'], {'default': '0.0'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'images': ('generic.GenericRelation', ["orm['catalog.Image']"], {'object_id_field': '"content_id"', 'content_type_field': '"content_type"'}),
-            'length': ('models.FloatField', ['_(u"Length")'], {'default': '0.0'}),
-            'manage_stock_amount': ('models.BooleanField', ['_(u"Manage stock amount")'], {'default': 'True'}),
-            'manual_delivery_time': ('models.BooleanField', ['_(u"Manual delivery time")'], {'default': 'False'}),
-            'meta_description': ('models.TextField', ['_(u"Meta description")'], {'blank': 'True'}),
-            'meta_keywords': ('models.TextField', ['_(u"Meta keywords")'], {'blank': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '80'}),
-            'order_time': ('models.ForeignKey', ["orm['catalog.DeliveryTime']"], {'related_name': '"products_order_time"', 'null': 'True', 'blank': 'True'}),
-            'ordered_at': ('models.DateField', ['_(u"Ordered at")'], {'null': 'True', 'blank': 'True'}),
-            'parent': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"variants"', 'null': 'True', 'blank': 'True'}),
-            'price': ('models.FloatField', ['_(u"Price")'], {'default': '0.0'}),
-            'related_products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"reverse_related_products"', 'symmetrical': 'False', 'null': 'True', 'blank': 'True'}),
-            'short_description': ('models.TextField', ['_(u"Short description")'], {'blank': 'True'}),
-            'sku': ('models.CharField', ['_(u"SKU")'], {'max_length': '30', 'blank': 'True'}),
-            'slug': ('models.SlugField', ['_(u"Slug")'], {'max_length': '80', 'unique': 'True'}),
-            'stock_amount': ('models.FloatField', ['_(u"Stock amount")'], {'default': '0'}),
-            'sub_type': ('models.CharField', ['_(u"Subtype")'], {'default': "'0'", 'max_length': '10'}),
-            'tax': ('models.ForeignKey', ["orm['tax.Tax']"], {'null': 'True', 'blank': 'True'}),
-            'uid': ('models.CharField', [], {'max_length': '50'}),
-            'variants_display_type': ('models.IntegerField', ['_(u"Variants display type")'], {'default': '0'}),
-            'weight': ('models.FloatField', ['_(u"Weight")'], {'default': '0.0'}),
-            'width': ('models.FloatField', ['_(u"Width")'], {'default': '0.0'})
-        },
-        'catalog.deliverytime': {
-            'Meta': {'ordering': '("min",)'},
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'max': ('models.FloatField', ['_(u"Max")'], {}),
-            'min': ('models.FloatField', ['_(u"Min")'], {}),
-            'unit': ('models.PositiveSmallIntegerField', ['_(u"Unit")'], {'default': '2'})
-        },
-        'catalog.propertyoption': {
-            'Meta': {'ordering': '["position"]'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '100'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '99'}),
-            'price': ('models.FloatField', ['_(u"Price")'], {'default': '0.0', 'null': 'True', 'blank': 'True'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"options"'}),
-            'uid': ('models.CharField', [], {'max_length': '50'})
-        },
-        'catalog.productspropertiesrelation': {
-            'Meta': {'ordering': '("position",)', 'unique_together': '("product","property")'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productsproperties"'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {})
-        },
-        'catalog.image': {
-            'Meta': {'ordering': '("position",)'},
-            'content_id': ('models.PositiveIntegerField', ['_(u"Content id")'], {'null': 'True', 'blank': 'True'}),
-            'content_type': ('models.ForeignKey', ["orm['contenttypes.ContentType']"], {'related_name': '"image"', 'null': 'True', 'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'image': ('ImageWithThumbsField', ['_(u"Image")'], {'null': 'True', 'sizes': '((60,60),(100,100),(200,200),(400,400))', 'blank': 'True'}),
-            'position': ('models.PositiveSmallIntegerField', ['_(u"Position")'], {'default': '999'}),
-            'title': ('models.CharField', ['_(u"Title")'], {'max_length': '100', 'blank': 'True'})
-        },
-        'catalog.groupspropertiesrelation': {
-            'Meta': {'ordering': '("position",)', 'unique_together': '("group","property")'},
-            'group': ('models.ForeignKey', ["orm['catalog.PropertyGroup']"], {'related_name': '"groupproperties"'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {})
-        },
-        'tax.tax': {
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'catalog.property': {
-            'Meta': {'ordering': '["position"]'},
-            'display_no_results': ('models.BooleanField', ['_(u"Display no results")'], {'default': 'False'}),
-            'display_on_product': ('models.BooleanField', ['_(u"Display on product")'], {'default': 'True'}),
-            'filterable': ('models.BooleanField', [], {'default': 'True'}),
-            'groups': ('models.ManyToManyField', ["orm['catalog.PropertyGroup']"], {'related_name': '"properties"', 'through': '"GroupsPropertiesRelation"', 'null': 'True', 'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'local': ('models.BooleanField', [], {'default': 'False'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '100'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'null': 'True', 'blank': 'True'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"properties"', 'through': '"ProductsPropertiesRelation"', 'null': 'True', 'blank': 'True'}),
-            'step': ('models.IntegerField', ['_(u"Step")'], {'null': 'True', 'blank': 'True'}),
-            'step_type': ('models.PositiveSmallIntegerField', ['_(u"Step type")'], {'default': '1'}),
-            'type': ('models.PositiveSmallIntegerField', ['_(u"Type")'], {'default': '2'}),
-            'uid': ('models.CharField', [], {'max_length': '50'}),
-            'unit': ('models.CharField', ['_(u"Unit")'], {'max_length': '15', 'blank': 'True'})
-        }
-    }
-    
-    complete_apps = ['catalog']

File lfs/catalog/migrations/0004_added_exclude_from_navigation.py

-
-from south.db import db
-from django.db import models
-from lfs.catalog.models import *
-
-class Migration:
-    
-    def forwards(self, orm):
-        
-        # Adding field 'Category.exclude_from_navigation'
-        db.add_column('catalog_category', 'exclude_from_navigation', models.BooleanField(default=False))
-            
-    def backwards(self, orm):
-        
-        # Deleting field 'Category.exclude_from_navigation'
-        db.delete_column('catalog_category', 'exclude_from_navigation')
-        
-    models = {
-        'catalog.productpropertyvalue': {
-            'Meta': {'unique_together': '("product","property","value")'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'parent_id': ('models.IntegerField', [], {'null': 'True', 'blank': 'True'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"property_values"'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"property_values"'}),
-            'value': ('models.CharField', [], {'max_length': '100', 'blank': 'True'}),
-            'value_as_float': ('models.FloatField', [], {'null': 'True', 'blank': 'True'})
-        },
-        'catalog.staticblock': {
-            'html': ('models.TextField', ['_(u"HTML")'], {'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '30'})
-        },
-        'catalog.propertygroup': {
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', [], {'max_length': '50', 'blank': 'True'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"property_groups"'})
-        },
-        'contenttypes.contenttype': {
-            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label','model'),)", 'db_table': "'django_content_type'"},
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'catalog.category': {
-            'Meta': {'ordering': '("position",)'},
-            'active_formats': ('models.BooleanField', ['_(u"Active formats")'], {'default': 'False'}),
-            'category_cols': ('models.IntegerField', ['_(u"Category cols")'], {'default': '3'}),
-            'content': ('models.IntegerField', ['_(u"Content")'], {'default': '1'}),
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'exclude_from_navigation': ('models.BooleanField', [], {'default': 'False'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'image': ('ImageWithThumbsField', ['_(u"Image")'], {'null': 'True', 'sizes': '((60,60),(100,100),(200,200),(400,400))', 'blank': 'True'}),
-            'meta_description': ('models.TextField', ['_(u"Meta description")'], {'blank': 'True'}),
-            'meta_keywords': ('models.TextField', ['_(u"Meta keywords")'], {'blank': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '50'}),
-            'parent': ('models.ForeignKey', ["orm['catalog.Category']"], {'null': 'True', 'blank': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '1000'}),
-            'product_cols': ('models.IntegerField', ['_(u"Product cols")'], {'default': '3'}),
-            'product_rows': ('models.IntegerField', ['_(u"Product rows")'], {'default': '3'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"categories"', 'blank': 'True'}),
-            'short_description': ('models.TextField', ['_(u"Short description")'], {'blank': 'True'}),
-            'show_all_products': ('models.BooleanField', ['_(u"Show all products")'], {'default': 'True'}),
-            'slug': ('models.SlugField', ['_(u"Slug")'], {'unique': 'True'}),
-            'static_block': ('models.ForeignKey', ["orm['catalog.StaticBlock']"], {'related_name': '"categories"', 'null': 'True', 'blank': 'True'}),
-            'uid': ('models.CharField', [], {'max_length': '50'})
-        },
-        'catalog.productaccessories': {
-            'Meta': {'ordering': '("position",)'},
-            'accessory': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productaccessories_accessory"'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productaccessories_product"'}),
-            'quantity': ('models.FloatField', ['_(u"Quantity")'], {'default': '1'})
-        },
-        'catalog.filterstep': {
-            'Meta': {'ordering': '["start"]'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"steps"'}),
-            'start': ('models.FloatField', [], {})
-        },
-        'catalog.product': {
-            'Meta': {'ordering': '("name",)'},
-            'accessories': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"reverse_accessories"', 'through': '"ProductAccessories"', 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
-            'active': ('models.BooleanField', ['_(u"Active")'], {'default': 'False'}),
-            'active_accessories': ('models.BooleanField', ['_(u"Active accessories")'], {'default': 'False'}),
-            'active_description': ('models.BooleanField', ['_(u"Active description")'], {'default': 'False'}),
-            'active_for_sale': ('models.PositiveSmallIntegerField', ['_("Active for sale")'], {'default': '0'}),
-            'active_for_sale_price': ('models.BooleanField', ['_(u"Active for sale price")'], {'default': 'True'}),
-            'active_images': ('models.BooleanField', ['_(u"Active Images")'], {'default': 'False'}),
-            'active_meta_description': ('models.BooleanField', ['_(u"Active meta description")'], {'default': 'False'}),
-            'active_meta_keywords': ('models.BooleanField', ['_(u"Active meta keywords")'], {'default': 'False'}),
-            'active_name': ('models.BooleanField', ['_(u"Active name")'], {'default': 'True'}),
-            'active_price': ('models.BooleanField', ['_(u"Active price")'], {'default': 'False'}),
-            'active_related_products': ('models.BooleanField', ['_(u"Active related products")'], {'default': 'False'}),
-            'active_short_description': ('models.BooleanField', ['_(u"Active short description")'], {'default': 'False'}),
-            'active_sku': ('models.BooleanField', ['_(u"Active SKU")'], {'default': 'True'}),
-            'creation_date': ('models.DateTimeField', ['_(u"Creation date")'], {'auto_now_add': 'True'}),
-            'default_variant': ('models.ForeignKey', ["orm['catalog.Product']"], {'null': 'True', 'blank': 'True'}),
-            'deliverable': ('models.BooleanField', ['_(u"Deliverable")'], {'default': 'True'}),
-            'delivery_time': ('models.ForeignKey', ["orm['catalog.DeliveryTime']"], {'related_name': '"products_delivery_time"', 'null': 'True', 'blank': 'True'}),
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'effective_price': ('models.FloatField', ['_(u"Price")'], {'blank': 'True'}),
-            'for_sale': ('models.BooleanField', ['_(u"For sale")'], {'default': 'False'}),
-            'for_sale_price': ('models.FloatField', ['_(u"For sale price")'], {'default': '0.0'}),
-            'height': ('models.FloatField', ['_(u"Height")'], {'default': '0.0'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'images': ('generic.GenericRelation', ["orm['catalog.Image']"], {'object_id_field': '"content_id"', 'content_type_field': '"content_type"'}),
-            'length': ('models.FloatField', ['_(u"Length")'], {'default': '0.0'}),
-            'manage_stock_amount': ('models.BooleanField', ['_(u"Manage stock amount")'], {'default': 'True'}),
-            'manual_delivery_time': ('models.BooleanField', ['_(u"Manual delivery time")'], {'default': 'False'}),
-            'meta_description': ('models.TextField', ['_(u"Meta description")'], {'blank': 'True'}),
-            'meta_keywords': ('models.TextField', ['_(u"Meta keywords")'], {'blank': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '80'}),
-            'order_time': ('models.ForeignKey', ["orm['catalog.DeliveryTime']"], {'related_name': '"products_order_time"', 'null': 'True', 'blank': 'True'}),
-            'ordered_at': ('models.DateField', ['_(u"Ordered at")'], {'null': 'True', 'blank': 'True'}),
-            'parent': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"variants"', 'null': 'True', 'blank': 'True'}),
-            'price': ('models.FloatField', ['_(u"Price")'], {'default': '0.0'}),
-            'related_products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"reverse_related_products"', 'symmetrical': 'False', 'null': 'True', 'blank': 'True'}),
-            'short_description': ('models.TextField', ['_(u"Short description")'], {'blank': 'True'}),
-            'sku': ('models.CharField', ['_(u"SKU")'], {'max_length': '30', 'blank': 'True'}),
-            'slug': ('models.SlugField', ['_(u"Slug")'], {'max_length': '80', 'unique': 'True'}),
-            'stock_amount': ('models.FloatField', ['_(u"Stock amount")'], {'default': '0'}),
-            'sub_type': ('models.CharField', ['_(u"Subtype")'], {'default': "'0'", 'max_length': '10'}),
-            'tax': ('models.ForeignKey', ["orm['tax.Tax']"], {'null': 'True', 'blank': 'True'}),
-            'uid': ('models.CharField', [], {'max_length': '50'}),
-            'variants_display_type': ('models.IntegerField', ['_(u"Variants display type")'], {'default': '0'}),
-            'weight': ('models.FloatField', ['_(u"Weight")'], {'default': '0.0'}),
-            'width': ('models.FloatField', ['_(u"Width")'], {'default': '0.0'})
-        },
-        'catalog.deliverytime': {
-            'Meta': {'ordering': '("min",)'},
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'max': ('models.FloatField', ['_(u"Max")'], {}),
-            'min': ('models.FloatField', ['_(u"Min")'], {}),
-            'unit': ('models.PositiveSmallIntegerField', ['_(u"Unit")'], {'default': '2'})
-        },
-        'catalog.propertyoption': {
-            'Meta': {'ordering': '["position"]'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '100'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '99'}),
-            'price': ('models.FloatField', ['_(u"Price")'], {'default': '0.0', 'null': 'True', 'blank': 'True'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"options"'}),
-            'uid': ('models.CharField', [], {'max_length': '50'})
-        },
-        'catalog.productspropertiesrelation': {
-            'Meta': {'ordering': '("position",)', 'unique_together': '("product","property")'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productsproperties"'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {})
-        },
-        'catalog.image': {
-            'Meta': {'ordering': '("position",)'},
-            'content_id': ('models.PositiveIntegerField', ['_(u"Content id")'], {'null': 'True', 'blank': 'True'}),
-            'content_type': ('models.ForeignKey', ["orm['contenttypes.ContentType']"], {'related_name': '"image"', 'null': 'True', 'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'image': ('ImageWithThumbsField', ['_(u"Image")'], {'null': 'True', 'sizes': '((60,60),(100,100),(200,200),(400,400))', 'blank': 'True'}),
-            'position': ('models.PositiveSmallIntegerField', ['_(u"Position")'], {'default': '999'}),
-            'title': ('models.CharField', ['_(u"Title")'], {'max_length': '100', 'blank': 'True'})
-        },
-        'catalog.groupspropertiesrelation': {
-            'Meta': {'ordering': '("position",)', 'unique_together': '("group","property")'},
-            'group': ('models.ForeignKey', ["orm['catalog.PropertyGroup']"], {'related_name': '"groupproperties"'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {})
-        },
-        'tax.tax': {
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'catalog.property': {
-            'Meta': {'ordering': '["position"]'},
-            'display_no_results': ('models.BooleanField', ['_(u"Display no results")'], {'default': 'False'}),
-            'display_on_product': ('models.BooleanField', ['_(u"Display on product")'], {'default': 'True'}),
-            'filterable': ('models.BooleanField', [], {'default': 'True'}),
-            'groups': ('models.ManyToManyField', ["orm['catalog.PropertyGroup']"], {'related_name': '"properties"', 'through': '"GroupsPropertiesRelation"', 'null': 'True', 'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'local': ('models.BooleanField', [], {'default': 'False'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '100'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'null': 'True', 'blank': 'True'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"properties"', 'through': '"ProductsPropertiesRelation"', 'null': 'True', 'blank': 'True'}),
-            'step': ('models.IntegerField', ['_(u"Step")'], {'null': 'True', 'blank': 'True'}),
-            'step_type': ('models.PositiveSmallIntegerField', ['_(u"Step type")'], {'default': '1'}),
-            'type': ('models.PositiveSmallIntegerField', ['_(u"Type")'], {'default': '2'}),
-            'uid': ('models.CharField', [], {'max_length': '50'}),
-            'unit': ('models.CharField', ['_(u"Unit")'], {'max_length': '15', 'blank': 'True'})
-        }
-    }
-    
-    complete_apps = ['catalog']

File lfs/catalog/migrations/0005_add_active_dimensions.py

-from south.db import db
-from django.db import models
-from lfs.catalog.models import *
-
-class Migration:
-    
-    def forwards(self, orm):
-        "Write your forwards migration here"    
-        db.add_column('catalog_product', 'active_dimensions', models.BooleanField(default=False))
-    
-    
-    def backwards(self, orm):
-        "Write your backwards migration here"
-    
-        db.delete_column('catalog_product', 'active_dimensions')
-    
-    models = {
-        'catalog.productpropertyvalue': {
-            'Meta': {'unique_together': '("product","property","value")'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'parent_id': ('models.IntegerField', [], {'null': 'True', 'blank': 'True'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"property_values"'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"property_values"'}),
-            'value': ('models.CharField', [], {'max_length': '100', 'blank': 'True'}),
-            'value_as_float': ('models.FloatField', [], {'null': 'True', 'blank': 'True'})
-        },
-        'catalog.staticblock': {
-            'html': ('models.TextField', ['_(u"HTML")'], {'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '30'})
-        },
-        'catalog.propertygroup': {
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', [], {'max_length': '50', 'blank': 'True'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"property_groups"'})
-        },
-        'contenttypes.contenttype': {
-            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label','model'),)", 'db_table': "'django_content_type'"},
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'catalog.category': {
-            'Meta': {'ordering': '("position",)'},
-            'active_formats': ('models.BooleanField', ['_(u"Active formats")'], {'default': 'False'}),
-            'category_cols': ('models.IntegerField', ['_(u"Category cols")'], {'default': '3'}),
-            'content': ('models.IntegerField', ['_(u"Content")'], {'default': '1'}),
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'exclude_from_navigation': ('models.BooleanField', ['_(u"Exclude from navigation")'], {'default': 'False'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'image': ('ImageWithThumbsField', ['_(u"Image")'], {'null': 'True', 'sizes': '((60,60),(100,100),(200,200),(400,400))', 'blank': 'True'}),
-            'meta_description': ('models.TextField', ['_(u"Meta description")'], {'blank': 'True'}),
-            'meta_keywords': ('models.TextField', ['_(u"Meta keywords")'], {'blank': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '50'}),
-            'parent': ('models.ForeignKey', ["orm['catalog.Category']"], {'null': 'True', 'blank': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '1000'}),
-            'product_cols': ('models.IntegerField', ['_(u"Product cols")'], {'default': '3'}),
-            'product_rows': ('models.IntegerField', ['_(u"Product rows")'], {'default': '3'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"categories"', 'blank': 'True'}),
-            'short_description': ('models.TextField', ['_(u"Short description")'], {'blank': 'True'}),
-            'show_all_products': ('models.BooleanField', ['_(u"Show all products")'], {'default': 'True'}),
-            'slug': ('models.SlugField', ['_(u"Slug")'], {'unique': 'True'}),
-            'static_block': ('models.ForeignKey', ["orm['catalog.StaticBlock']"], {'related_name': '"categories"', 'null': 'True', 'blank': 'True'}),
-            'uid': ('models.CharField', [], {'max_length': '50'})
-        },
-        'catalog.productaccessories': {
-            'Meta': {'ordering': '("position",)'},
-            'accessory': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productaccessories_accessory"'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productaccessories_product"'}),
-            'quantity': ('models.FloatField', ['_(u"Quantity")'], {'default': '1'})
-        },
-        'catalog.filterstep': {
-            'Meta': {'ordering': '["start"]'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"steps"'}),
-            'start': ('models.FloatField', [], {})
-        },
-        'catalog.product': {
-            'Meta': {'ordering': '("name",)'},
-            'accessories': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"reverse_accessories"', 'through': '"ProductAccessories"', 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
-            'active': ('models.BooleanField', ['_(u"Active")'], {'default': 'False'}),
-            'active_accessories': ('models.BooleanField', ['_(u"Active accessories")'], {'default': 'False'}),
-            'active_description': ('models.BooleanField', ['_(u"Active description")'], {'default': 'False'}),
-            'active_dimensions': ('models.BooleanField', ['_(u"Active dimensions")'], {'default': 'False'}),
-            'active_for_sale': ('models.PositiveSmallIntegerField', ['_("Active for sale")'], {'default': '0'}),
-            'active_for_sale_price': ('models.BooleanField', ['_(u"Active for sale price")'], {'default': 'False'}),
-            'active_images': ('models.BooleanField', ['_(u"Active Images")'], {'default': 'False'}),
-            'active_meta_description': ('models.BooleanField', ['_(u"Active meta description")'], {'default': 'False'}),
-            'active_meta_keywords': ('models.BooleanField', ['_(u"Active meta keywords")'], {'default': 'False'}),
-            'active_name': ('models.BooleanField', ['_(u"Active name")'], {'default': 'False'}),
-            'active_price': ('models.BooleanField', ['_(u"Active price")'], {'default': 'False'}),
-            'active_related_products': ('models.BooleanField', ['_(u"Active related products")'], {'default': 'False'}),
-            'active_short_description': ('models.BooleanField', ['_(u"Active short description")'], {'default': 'False'}),
-            'active_sku': ('models.BooleanField', ['_(u"Active SKU")'], {'default': 'False'}),
-            'creation_date': ('models.DateTimeField', ['_(u"Creation date")'], {'auto_now_add': 'True'}),
-            'default_variant': ('models.ForeignKey', ["orm['catalog.Product']"], {'null': 'True', 'blank': 'True'}),
-            'deliverable': ('models.BooleanField', ['_(u"Deliverable")'], {'default': 'True'}),
-            'delivery_time': ('models.ForeignKey', ["orm['catalog.DeliveryTime']"], {'related_name': '"products_delivery_time"', 'null': 'True', 'blank': 'True'}),
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'effective_price': ('models.FloatField', ['_(u"Price")'], {'blank': 'True'}),
-            'for_sale': ('models.BooleanField', ['_(u"For sale")'], {'default': 'False'}),
-            'for_sale_price': ('models.FloatField', ['_(u"For sale price")'], {'default': '0.0'}),
-            'height': ('models.FloatField', ['_(u"Height")'], {'default': '0.0'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'images': ('generic.GenericRelation', ["orm['catalog.Image']"], {'object_id_field': '"content_id"', 'content_type_field': '"content_type"'}),
-            'length': ('models.FloatField', ['_(u"Length")'], {'default': '0.0'}),
-            'manage_stock_amount': ('models.BooleanField', ['_(u"Manage stock amount")'], {'default': 'True'}),
-            'manual_delivery_time': ('models.BooleanField', ['_(u"Manual delivery time")'], {'default': 'False'}),
-            'meta_description': ('models.TextField', ['_(u"Meta description")'], {'blank': 'True'}),
-            'meta_keywords': ('models.TextField', ['_(u"Meta keywords")'], {'blank': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '80', 'blank': 'True'}),
-            'order_time': ('models.ForeignKey', ["orm['catalog.DeliveryTime']"], {'related_name': '"products_order_time"', 'null': 'True', 'blank': 'True'}),
-            'ordered_at': ('models.DateField', ['_(u"Ordered at")'], {'null': 'True', 'blank': 'True'}),
-            'parent': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"variants"', 'null': 'True', 'blank': 'True'}),
-            'price': ('models.FloatField', ['_(u"Price")'], {'default': '0.0'}),
-            'related_products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"reverse_related_products"', 'symmetrical': 'False', 'null': 'True', 'blank': 'True'}),
-            'short_description': ('models.TextField', ['_(u"Short description")'], {'blank': 'True'}),
-            'sku': ('models.CharField', ['_(u"SKU")'], {'max_length': '30', 'blank': 'True'}),
-            'slug': ('models.SlugField', ['_(u"Slug")'], {'max_length': '80', 'unique': 'True'}),
-            'stock_amount': ('models.FloatField', ['_(u"Stock amount")'], {'default': '0'}),
-            'sub_type': ('models.CharField', ['_(u"Subtype")'], {'default': "'0'", 'max_length': '10'}),
-            'tax': ('models.ForeignKey', ["orm['tax.Tax']"], {'null': 'True', 'blank': 'True'}),
-            'uid': ('models.CharField', [], {'max_length': '50'}),
-            'variants_display_type': ('models.IntegerField', ['_(u"Variants display type")'], {'default': '0'}),
-            'weight': ('models.FloatField', ['_(u"Weight")'], {'default': '0.0'}),
-            'width': ('models.FloatField', ['_(u"Width")'], {'default': '0.0'})
-        },
-        'catalog.deliverytime': {
-            'Meta': {'ordering': '("min",)'},
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'max': ('models.FloatField', ['_(u"Max")'], {}),
-            'min': ('models.FloatField', ['_(u"Min")'], {}),
-            'unit': ('models.PositiveSmallIntegerField', ['_(u"Unit")'], {'default': '2'})
-        },
-        'catalog.propertyoption': {
-            'Meta': {'ordering': '["position"]'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '100'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '99'}),
-            'price': ('models.FloatField', ['_(u"Price")'], {'default': '0.0', 'null': 'True', 'blank': 'True'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"options"'}),
-            'uid': ('models.CharField', [], {'max_length': '50'})
-        },
-        'catalog.productspropertiesrelation': {
-            'Meta': {'ordering': '("position",)', 'unique_together': '("product","property")'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productsproperties"'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {})
-        },
-        'catalog.image': {
-            'Meta': {'ordering': '("position",)'},
-            'content_id': ('models.PositiveIntegerField', ['_(u"Content id")'], {'null': 'True', 'blank': 'True'}),
-            'content_type': ('models.ForeignKey', ["orm['contenttypes.ContentType']"], {'related_name': '"image"', 'null': 'True', 'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'image': ('ImageWithThumbsField', ['_(u"Image")'], {'null': 'True', 'sizes': '((60,60),(100,100),(200,200),(400,400))', 'blank': 'True'}),
-            'position': ('models.PositiveSmallIntegerField', ['_(u"Position")'], {'default': '999'}),
-            'title': ('models.CharField', ['_(u"Title")'], {'max_length': '100', 'blank': 'True'})
-        },
-        'catalog.groupspropertiesrelation': {
-            'Meta': {'ordering': '("position",)', 'unique_together': '("group","property")'},
-            'group': ('models.ForeignKey', ["orm['catalog.PropertyGroup']"], {'related_name': '"groupproperties"'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {})
-        },
-        'tax.tax': {
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'catalog.property': {
-            'Meta': {'ordering': '["position"]'},
-            'display_no_results': ('models.BooleanField', ['_(u"Display no results")'], {'default': 'False'}),
-            'display_on_product': ('models.BooleanField', ['_(u"Display on product")'], {'default': 'True'}),
-            'filterable': ('models.BooleanField', [], {'default': 'True'}),
-            'groups': ('models.ManyToManyField', ["orm['catalog.PropertyGroup']"], {'related_name': '"properties"', 'through': '"GroupsPropertiesRelation"', 'null': 'True', 'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'local': ('models.BooleanField', [], {'default': 'False'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '100'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'null': 'True', 'blank': 'True'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"properties"', 'through': '"ProductsPropertiesRelation"', 'null': 'True', 'blank': 'True'}),
-            'step': ('models.IntegerField', ['_(u"Step")'], {'null': 'True', 'blank': 'True'}),
-            'step_type': ('models.PositiveSmallIntegerField', ['_(u"Step type")'], {'default': '1'}),
-            'type': ('models.PositiveSmallIntegerField', ['_(u"Type")'], {'default': '2'}),
-            'uid': ('models.CharField', [], {'max_length': '50'}),
-            'unit': ('models.CharField', ['_(u"Unit")'], {'max_length': '15', 'blank': 'True'})
-        }
-    }
-    
-    complete_apps = ['catalog']

File lfs/catalog/migrations/0006_add_variant_position.py

-
-from south.db import db
-from django.db import models
-from lfs.catalog.models import *
-
-class Migration:
-    
-    def forwards(self, orm):
-        
-        # Adding field 'Product.variant_position'
-        db.add_column('catalog_product', 'variant_position', models.IntegerField(default=999))
-        
-    
-    
-    def backwards(self, orm):
-        
-        # Deleting field 'Product.variant_position'
-        db.delete_column('catalog_product', 'variant_position')
-        
-    
-    
-    models = {
-        'catalog.productpropertyvalue': {
-            'Meta': {'unique_together': '("product","property","value")'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'parent_id': ('models.IntegerField', [], {'null': 'True', 'blank': 'True'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"property_values"'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"property_values"'}),
-            'value': ('models.CharField', [], {'max_length': '100', 'blank': 'True'}),
-            'value_as_float': ('models.FloatField', [], {'null': 'True', 'blank': 'True'})
-        },
-        'catalog.staticblock': {
-            'html': ('models.TextField', ['_(u"HTML")'], {'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '30'})
-        },
-        'catalog.propertygroup': {
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', [], {'max_length': '50', 'blank': 'True'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"property_groups"'})
-        },
-        'contenttypes.contenttype': {
-            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label','model'),)", 'db_table': "'django_content_type'"},
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'catalog.category': {
-            'Meta': {'ordering': '("position",)'},
-            'active_formats': ('models.BooleanField', ['_(u"Active formats")'], {'default': 'False'}),
-            'category_cols': ('models.IntegerField', ['_(u"Category cols")'], {'default': '3'}),
-            'content': ('models.IntegerField', ['_(u"Content")'], {'default': '1'}),
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'exclude_from_navigation': ('models.BooleanField', ['_(u"Exclude from navigation")'], {'default': 'False'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'image': ('ImageWithThumbsField', ['_(u"Image")'], {'null': 'True', 'sizes': '((60,60),(100,100),(200,200),(400,400))', 'blank': 'True'}),
-            'meta_description': ('models.TextField', ['_(u"Meta description")'], {'blank': 'True'}),
-            'meta_keywords': ('models.TextField', ['_(u"Meta keywords")'], {'blank': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '50'}),
-            'parent': ('models.ForeignKey', ["orm['catalog.Category']"], {'null': 'True', 'blank': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '1000'}),
-            'product_cols': ('models.IntegerField', ['_(u"Product cols")'], {'default': '3'}),
-            'product_rows': ('models.IntegerField', ['_(u"Product rows")'], {'default': '3'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"categories"', 'blank': 'True'}),
-            'short_description': ('models.TextField', ['_(u"Short description")'], {'blank': 'True'}),
-            'show_all_products': ('models.BooleanField', ['_(u"Show all products")'], {'default': 'True'}),
-            'slug': ('models.SlugField', ['_(u"Slug")'], {'unique': 'True'}),
-            'static_block': ('models.ForeignKey', ["orm['catalog.StaticBlock']"], {'related_name': '"categories"', 'null': 'True', 'blank': 'True'}),
-            'uid': ('models.CharField', [], {'max_length': '50'})
-        },
-        'catalog.productaccessories': {
-            'Meta': {'ordering': '("position",)'},
-            'accessory': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productaccessories_accessory"'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productaccessories_product"'}),
-            'quantity': ('models.FloatField', ['_(u"Quantity")'], {'default': '1'})
-        },
-        'catalog.filterstep': {
-            'Meta': {'ordering': '["start"]'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"steps"'}),
-            'start': ('models.FloatField', [], {})
-        },
-        'catalog.product': {
-            'Meta': {'ordering': '("name",)'},
-            'accessories': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"reverse_accessories"', 'through': '"ProductAccessories"', 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
-            'active': ('models.BooleanField', ['_(u"Active")'], {'default': 'False'}),
-            'active_accessories': ('models.BooleanField', ['_(u"Active accessories")'], {'default': 'False'}),
-            'active_description': ('models.BooleanField', ['_(u"Active description")'], {'default': 'False'}),
-            'active_dimensions': ('models.BooleanField', ['_(u"Active dimensions")'], {'default': 'False'}),
-            'active_for_sale': ('models.PositiveSmallIntegerField', ['_("Active for sale")'], {'default': '0'}),
-            'active_for_sale_price': ('models.BooleanField', ['_(u"Active for sale price")'], {'default': 'False'}),
-            'active_images': ('models.BooleanField', ['_(u"Active Images")'], {'default': 'False'}),
-            'active_meta_description': ('models.BooleanField', ['_(u"Active meta description")'], {'default': 'False'}),
-            'active_meta_keywords': ('models.BooleanField', ['_(u"Active meta keywords")'], {'default': 'False'}),
-            'active_name': ('models.BooleanField', ['_(u"Active name")'], {'default': 'False'}),
-            'active_price': ('models.BooleanField', ['_(u"Active price")'], {'default': 'False'}),
-            'active_related_products': ('models.BooleanField', ['_(u"Active related products")'], {'default': 'False'}),
-            'active_short_description': ('models.BooleanField', ['_(u"Active short description")'], {'default': 'False'}),
-            'active_sku': ('models.BooleanField', ['_(u"Active SKU")'], {'default': 'False'}),
-            'creation_date': ('models.DateTimeField', ['_(u"Creation date")'], {'auto_now_add': 'True'}),
-            'default_variant': ('models.ForeignKey', ["orm['catalog.Product']"], {'null': 'True', 'blank': 'True'}),
-            'deliverable': ('models.BooleanField', ['_(u"Deliverable")'], {'default': 'True'}),
-            'delivery_time': ('models.ForeignKey', ["orm['catalog.DeliveryTime']"], {'related_name': '"products_delivery_time"', 'null': 'True', 'blank': 'True'}),
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'effective_price': ('models.FloatField', ['_(u"Price")'], {'blank': 'True'}),
-            'for_sale': ('models.BooleanField', ['_(u"For sale")'], {'default': 'False'}),
-            'for_sale_price': ('models.FloatField', ['_(u"For sale price")'], {'default': '0.0'}),
-            'height': ('models.FloatField', ['_(u"Height")'], {'default': '0.0'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'images': ('generic.GenericRelation', ["orm['catalog.Image']"], {'object_id_field': '"content_id"', 'content_type_field': '"content_type"'}),
-            'length': ('models.FloatField', ['_(u"Length")'], {'default': '0.0'}),
-            'manage_stock_amount': ('models.BooleanField', ['_(u"Manage stock amount")'], {'default': 'True'}),
-            'manual_delivery_time': ('models.BooleanField', ['_(u"Manual delivery time")'], {'default': 'False'}),
-            'meta_description': ('models.TextField', ['_(u"Meta description")'], {'blank': 'True'}),
-            'meta_keywords': ('models.TextField', ['_(u"Meta keywords")'], {'blank': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '80', 'blank': 'True'}),
-            'order_time': ('models.ForeignKey', ["orm['catalog.DeliveryTime']"], {'related_name': '"products_order_time"', 'null': 'True', 'blank': 'True'}),
-            'ordered_at': ('models.DateField', ['_(u"Ordered at")'], {'null': 'True', 'blank': 'True'}),
-            'parent': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"variants"', 'null': 'True', 'blank': 'True'}),
-            'price': ('models.FloatField', ['_(u"Price")'], {'default': '0.0'}),
-            'related_products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"reverse_related_products"', 'symmetrical': 'False', 'null': 'True', 'blank': 'True'}),
-            'short_description': ('models.TextField', ['_(u"Short description")'], {'blank': 'True'}),
-            'sku': ('models.CharField', ['_(u"SKU")'], {'max_length': '30', 'blank': 'True'}),
-            'slug': ('models.SlugField', ['_(u"Slug")'], {'max_length': '80', 'unique': 'True'}),
-            'stock_amount': ('models.FloatField', ['_(u"Stock amount")'], {'default': '0'}),
-            'sub_type': ('models.CharField', ['_(u"Subtype")'], {'default': "'0'", 'max_length': '10'}),
-            'tax': ('models.ForeignKey', ["orm['tax.Tax']"], {'null': 'True', 'blank': 'True'}),
-            'uid': ('models.CharField', [], {'max_length': '50'}),
-            'variant_position': ('models.IntegerField', [], {'default': '999'}),
-            'variants_display_type': ('models.IntegerField', ['_(u"Variants display type")'], {'default': '0'}),
-            'weight': ('models.FloatField', ['_(u"Weight")'], {'default': '0.0'}),
-            'width': ('models.FloatField', ['_(u"Width")'], {'default': '0.0'})
-        },
-        'catalog.deliverytime': {
-            'Meta': {'ordering': '("min",)'},
-            'description': ('models.TextField', ['_(u"Description")'], {'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'max': ('models.FloatField', ['_(u"Max")'], {}),
-            'min': ('models.FloatField', ['_(u"Min")'], {}),
-            'unit': ('models.PositiveSmallIntegerField', ['_(u"Unit")'], {'default': '2'})
-        },
-        'catalog.propertyoption': {
-            'Meta': {'ordering': '["position"]'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '100'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '99'}),
-            'price': ('models.FloatField', ['_(u"Price")'], {'default': '0.0', 'null': 'True', 'blank': 'True'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {'related_name': '"options"'}),
-            'uid': ('models.CharField', [], {'max_length': '50'})
-        },
-        'catalog.productspropertiesrelation': {
-            'Meta': {'ordering': '("position",)', 'unique_together': '("product","property")'},
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'product': ('models.ForeignKey', ["orm['catalog.Product']"], {'related_name': '"productsproperties"'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {})
-        },
-        'catalog.image': {
-            'Meta': {'ordering': '("position",)'},
-            'content_id': ('models.PositiveIntegerField', ['_(u"Content id")'], {'null': 'True', 'blank': 'True'}),
-            'content_type': ('models.ForeignKey', ["orm['contenttypes.ContentType']"], {'related_name': '"image"', 'null': 'True', 'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'image': ('ImageWithThumbsField', ['_(u"Image")'], {'null': 'True', 'sizes': '((60,60),(100,100),(200,200),(400,400))', 'blank': 'True'}),
-            'position': ('models.PositiveSmallIntegerField', ['_(u"Position")'], {'default': '999'}),
-            'title': ('models.CharField', ['_(u"Title")'], {'max_length': '100', 'blank': 'True'})
-        },
-        'catalog.groupspropertiesrelation': {
-            'Meta': {'ordering': '("position",)', 'unique_together': '("group","property")'},
-            'group': ('models.ForeignKey', ["orm['catalog.PropertyGroup']"], {'related_name': '"groupproperties"'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'default': '999'}),
-            'property': ('models.ForeignKey', ["orm['catalog.Property']"], {})
-        },
-        'tax.tax': {
-            '_stub': True,
-            'id': ('models.AutoField', [], {'primary_key': 'True'})
-        },
-        'catalog.property': {
-            'Meta': {'ordering': '["position"]'},
-            'display_no_results': ('models.BooleanField', ['_(u"Display no results")'], {'default': 'False'}),
-            'display_on_product': ('models.BooleanField', ['_(u"Display on product")'], {'default': 'True'}),
-            'filterable': ('models.BooleanField', [], {'default': 'True'}),
-            'groups': ('models.ManyToManyField', ["orm['catalog.PropertyGroup']"], {'related_name': '"properties"', 'through': '"GroupsPropertiesRelation"', 'null': 'True', 'blank': 'True'}),
-            'id': ('models.AutoField', [], {'primary_key': 'True'}),
-            'local': ('models.BooleanField', [], {'default': 'False'}),
-            'name': ('models.CharField', ['_(u"Name")'], {'max_length': '100'}),
-            'position': ('models.IntegerField', ['_(u"Position")'], {'null': 'True', 'blank': 'True'}),
-            'products': ('models.ManyToManyField', ["orm['catalog.Product']"], {'related_name': '"properties"', 'through': '"ProductsPropertiesRelation"', 'null': 'True', 'blank': 'True'}),
-            'step': ('models.IntegerField', ['_(u"Step")'], {'null': 'True', 'blank': 'True'}),
-            'step_type': ('models.PositiveSmallIntegerField', ['_(u"Step type")'], {'default': '1'}),
-            'type': ('models.PositiveSmallIntegerField', ['_(u"Type")'], {'default': '2'}),
-            'uid': ('models.CharField', [], {'max_length': '50'}),
-            'unit': ('models.CharField', ['_(u"Unit")'], {'max_length': '15', 'blank': 'True'})
-        }
-    }
-    
-    complete_apps = ['catalog']

File lfs/catalog/migrations/__init__.py

Empty file removed.

File lfs/core/fixtures/lfs_all_countries.xml

-<?xml version="1.0" encoding="utf-8"?>
-<django-objects version="1.0">
-  <object pk="3" model="core.country">
-    <field type="CharField" name="code">af</field>
-    <field type="CharField" name="name">Afghanistan</field>
-  </object>
-  <object pk="6" model="core.country">
-    <field type="CharField" name="code">al</field>
-    <field type="CharField" name="name">Albania</field>
-  </object>
-  <object pk="61" model="core.country">
-    <field type="CharField" name="code">dz</field>
-    <field type="CharField" name="name">Algeria</field>
-  </object>
-  <object pk="12" model="core.country">
-    <field type="CharField" name="code">as</field>
-    <field type="CharField" name="name">American Samoa</field>
-  </object>
-  <object pk="1" model="core.country">
-    <field type="CharField" name="code">ad</field>
-    <field type="CharField" name="name">Andorra</field>
-  </object>
-  <object pk="9" model="core.country">
-    <field type="CharField" name="code">ao</field>
-    <field type="CharField" name="name">Angola</field>
-  </object>
-  <object pk="5" model="core.country">
-    <field type="CharField" name="code">ai</field>
-    <field type="CharField" name="name">Anguilla</field>
-  </object>
-  <object pk="10" model="core.country">
-    <field type="CharField" name="code">aq</field>
-    <field type="CharField" name="name">Antarctica</field>
-  </object>
-  <object pk="4" model="core.country">
-    <field type="CharField" name="code">ag</field>
-    <field type="CharField" name="name">Antigua and Barbuda</field>
-  </object>
-  <object pk="11" model="core.country">
-    <field type="CharField" name="code">ar</field>