Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Redoing migrations as they are just screwed up in odd ways

  • Loading branch information...
commit 6bcaa011716c4064aeee3b952323e65ef18853a6 1 parent d0b37f0
Moose authored
View
156 stores/migrations/0001_initial.py
@@ -40,7 +40,7 @@ def forwards(self, orm):
('manager_name', self.gf('django.db.models.fields.CharField')(max_length=200, null=True, blank=True)),
('phone', self.gf('django.db.models.fields.CharField')(max_length=20, null=True, blank=True)),
('email', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)),
- (u'Store', self.gf('django.db.models.fields.related.OneToOneField')(related_name='contact_details', unique=True, to=orm['stores.Store'])),
+ ('store', self.gf('django.db.models.fields.related.OneToOneField')(related_name='contact_details', unique=True, to=orm['stores.Store'])),
))
db.send_create_signal('stores', ['StoreContact'])
@@ -52,8 +52,8 @@ def forwards(self, orm):
('reference', self.gf('django.db.models.fields.CharField')(max_length=32, unique=True, null=True, blank=True)),
('image', self.gf('django.db.models.fields.files.ImageField')(max_length=100, null=True, blank=True)),
('description', self.gf('django.db.models.fields.CharField')(max_length=2000, null=True, blank=True)),
- ('location', self.gf('django.contrib.gis.db.models.fields.PointField')(null=True, blank=True)),
- (u'Group', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='stores', null=True, to=orm['stores.StoreGroup'])),
+ ('location', self.gf('django.contrib.gis.db.models.fields.PointField')()),
+ ('group', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='stores', null=True, to=orm['stores.StoreGroup'])),
('is_pickup_store', self.gf('django.db.models.fields.BooleanField')(default=True)),
('is_active', self.gf('django.db.models.fields.BooleanField')(default=True)),
))
@@ -62,13 +62,26 @@ def forwards(self, orm):
# Adding model 'OpeningPeriod'
db.create_table('stores_openingperiod', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- (u'Store', self.gf('django.db.models.fields.related.ForeignKey')(related_name='opening_periods', to=orm['stores.Store'])),
+ ('store', self.gf('django.db.models.fields.related.ForeignKey')(related_name='opening_periods', to=orm['stores.Store'])),
('weekday', self.gf('django.db.models.fields.PositiveIntegerField')()),
('start', self.gf('django.db.models.fields.CharField')(max_length=30, null=True, blank=True)),
('end', self.gf('django.db.models.fields.CharField')(max_length=30, null=True, blank=True)),
))
db.send_create_signal('stores', ['OpeningPeriod'])
+ # Adding model 'StoreStock'
+ db.create_table('stores_storestock', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('store', self.gf('django.db.models.fields.related.ForeignKey')(related_name='stock', to=orm['stores.Store'])),
+ ('product', self.gf('django.db.models.fields.related.ForeignKey')(related_name='store_stock', to=orm['catalogue.Product'])),
+ ('num_in_stock', self.gf('django.db.models.fields.PositiveIntegerField')(default=0, null=True, blank=True)),
+ ('num_allocated', self.gf('django.db.models.fields.IntegerField')(default=0, null=True, blank=True)),
+ ('location', self.gf('django.db.models.fields.CharField')(max_length=50, null=True, blank=True)),
+ ('date_created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
+ ('date_updated', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, db_index=True, blank=True)),
+ ))
+ db.send_create_signal('stores', ['StoreStock'])
+
def backwards(self, orm):
# Deleting model 'StoreAddress'
@@ -86,6 +99,9 @@ def backwards(self, orm):
# Deleting model 'OpeningPeriod'
db.delete_table('stores_openingperiod')
+ # Deleting model 'StoreStock'
+ db.delete_table('stores_storestock')
+
models = {
'address.country': {
@@ -98,23 +114,134 @@ def backwards(self, orm):
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
'printable_name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
},
+ 'catalogue.attributeentity': {
+ 'Meta': {'object_name': 'AttributeEntity'},
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'blank': 'True'}),
+ 'type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'entities'", 'to': "orm['catalogue.AttributeEntityType']"})
+ },
+ 'catalogue.attributeentitytype': {
+ 'Meta': {'object_name': 'AttributeEntityType'},
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'blank': 'True'})
+ },
+ 'catalogue.attributeoption': {
+ 'Meta': {'object_name': 'AttributeOption'},
+ 'group': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'options'", 'to': "orm['catalogue.AttributeOptionGroup']"}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'option': ('django.db.models.fields.CharField', [], {'max_length': '255'})
+ },
+ 'catalogue.attributeoptiongroup': {
+ 'Meta': {'object_name': 'AttributeOptionGroup'},
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
+ },
+ 'catalogue.category': {
+ 'Meta': {'ordering': "['full_name']", 'object_name': 'Category'},
+ 'depth': ('django.db.models.fields.PositiveIntegerField', [], {}),
+ 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+ 'full_name': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'db_index': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
+ 'numchild': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
+ 'path': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '1024'})
+ },
+ 'catalogue.option': {
+ 'Meta': {'object_name': 'Option'},
+ 'code': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '128'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
+ 'type': ('django.db.models.fields.CharField', [], {'default': "'Required'", 'max_length': '128'})
+ },
+ 'catalogue.product': {
+ 'Meta': {'ordering': "['-date_created']", 'object_name': 'Product'},
+ 'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['catalogue.ProductAttribute']", 'through': "orm['catalogue.ProductAttributeValue']", 'symmetrical': 'False'}),
+ 'categories': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['catalogue.Category']", 'through': "orm['catalogue.ProductCategory']", 'symmetrical': 'False'}),
+ 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+ 'date_updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
+ 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'is_discountable': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+ 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'variants'", 'null': 'True', 'to': "orm['catalogue.Product']"}),
+ 'product_class': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.ProductClass']", 'null': 'True'}),
+ 'product_options': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['catalogue.Option']", 'symmetrical': 'False', 'blank': 'True'}),
+ 'recommended_products': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['catalogue.Product']", 'symmetrical': 'False', 'through': "orm['catalogue.ProductRecommendation']", 'blank': 'True'}),
+ 'related_products': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'relations'", 'blank': 'True', 'to': "orm['catalogue.Product']"}),
+ 'score': ('django.db.models.fields.FloatField', [], {'default': '0.0', 'db_index': 'True'}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255'}),
+ 'status': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '128', 'null': 'True', 'blank': 'True'}),
+ 'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
+ 'upc': ('django.db.models.fields.CharField', [], {'max_length': '64', 'unique': 'True', 'null': 'True', 'blank': 'True'})
+ },
+ 'catalogue.productattribute': {
+ 'Meta': {'ordering': "['code']", 'object_name': 'ProductAttribute'},
+ 'code': ('django.db.models.fields.SlugField', [], {'max_length': '128'}),
+ 'entity_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.AttributeEntityType']", 'null': 'True', 'blank': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
+ 'option_group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.AttributeOptionGroup']", 'null': 'True', 'blank': 'True'}),
+ 'product_class': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes'", 'null': 'True', 'to': "orm['catalogue.ProductClass']"}),
+ 'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+ 'type': ('django.db.models.fields.CharField', [], {'default': "'text'", 'max_length': '20'})
+ },
+ 'catalogue.productattributevalue': {
+ 'Meta': {'object_name': 'ProductAttributeValue'},
+ 'attribute': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.ProductAttribute']"}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'product': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'attribute_values'", 'to': "orm['catalogue.Product']"}),
+ 'value_boolean': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+ 'value_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
+ 'value_entity': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.AttributeEntity']", 'null': 'True', 'blank': 'True'}),
+ 'value_float': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
+ 'value_integer': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
+ 'value_option': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.AttributeOption']", 'null': 'True', 'blank': 'True'}),
+ 'value_richtext': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
+ 'value_text': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
+ },
+ 'catalogue.productcategory': {
+ 'Meta': {'ordering': "['-is_canonical']", 'object_name': 'ProductCategory'},
+ 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Category']"}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'is_canonical': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
+ 'product': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Product']"})
+ },
+ 'catalogue.productclass': {
+ 'Meta': {'ordering': "['name']", 'object_name': 'ProductClass'},
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
+ 'options': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['catalogue.Option']", 'symmetrical': 'False', 'blank': 'True'}),
+ 'requires_shipping': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+ 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '128'}),
+ 'track_stock': ('django.db.models.fields.BooleanField', [], {'default': 'True'})
+ },
+ 'catalogue.productrecommendation': {
+ 'Meta': {'object_name': 'ProductRecommendation'},
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'primary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'primary_recommendations'", 'to': "orm['catalogue.Product']"}),
+ 'ranking': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}),
+ 'recommendation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Product']"})
+ },
'stores.openingperiod': {
'Meta': {'ordering': "['weekday']", 'object_name': 'OpeningPeriod'},
- u'Store': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'opening_periods'", 'to': "orm['stores.Store']"}),
'end': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'start': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
+ 'store': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'opening_periods'", 'to': "orm['stores.Store']"}),
'weekday': ('django.db.models.fields.PositiveIntegerField', [], {})
},
'stores.store': {
- u'Group': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'stores'", 'null': 'True', 'to': "orm['stores.StoreGroup']"}),
'Meta': {'object_name': 'Store'},
'description': ('django.db.models.fields.CharField', [], {'max_length': '2000', 'null': 'True', 'blank': 'True'}),
+ 'group': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'stores'", 'null': 'True', 'to': "orm['stores.StoreGroup']"}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'is_pickup_store': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'location': ('django.contrib.gis.db.models.fields.PointField', [], {'null': 'True', 'blank': 'True'}),
+ 'location': ('django.contrib.gis.db.models.fields.PointField', [], {}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'reference': ('django.db.models.fields.CharField', [], {'max_length': '32', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
'slug': ('django.db.models.fields.SlugField', [], {'max_length': '100', 'unique': 'True', 'null': 'True'})
@@ -137,17 +264,28 @@ def backwards(self, orm):
},
'stores.storecontact': {
'Meta': {'object_name': 'StoreContact'},
- u'Store': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'contact_details'", 'unique': 'True', 'to': "orm['stores.Store']"}),
'email': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'manager_name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'})
+ 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
+ 'store': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'contact_details'", 'unique': 'True', 'to': "orm['stores.Store']"})
},
'stores.storegroup': {
'Meta': {'object_name': 'StoreGroup'},
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '100', 'blank': 'True'})
+ },
+ 'stores.storestock': {
+ 'Meta': {'object_name': 'StoreStock'},
+ 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+ 'date_updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'location': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}),
+ 'num_allocated': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'}),
+ 'num_in_stock': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'}),
+ 'product': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'store_stock'", 'to': "orm['catalogue.Product']"}),
+ 'store': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'stock'", 'to': "orm['stores.Store']"})
}
}
View
214 stores/migrations/0002_auto__add_storestock.py
@@ -1,214 +0,0 @@
-# -*- coding: utf-8 -*-
-import datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'StoreStock'
- db.create_table('stores_storestock', (
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('store', self.gf('django.db.models.fields.related.ForeignKey')(related_name='stock', to=orm['stores.Store'])),
- ('product', self.gf('django.db.models.fields.related.ForeignKey')(related_name='store_stock', to=orm['catalogue.Product'])),
- ('num_in_stock', self.gf('django.db.models.fields.PositiveIntegerField')(default=0, null=True, blank=True)),
- ('num_allocated', self.gf('django.db.models.fields.IntegerField')(default=0, null=True, blank=True)),
- ('location', self.gf('django.db.models.fields.CharField')(max_length=50, null=True, blank=True)),
- ('date_created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('date_updated', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, db_index=True, blank=True)),
- ))
- db.send_create_signal('stores', ['StoreStock'])
-
- def backwards(self, orm):
- # Deleting model 'StoreStock'
- db.delete_table('stores_storestock')
-
- models = {
- 'address.country': {
- 'Meta': {'ordering': "('-is_highlighted', 'name')", 'object_name': 'Country'},
- 'is_highlighted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
- 'is_shipping_country': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
- 'iso_3166_1_a2': ('django.db.models.fields.CharField', [], {'max_length': '2', 'primary_key': 'True'}),
- 'iso_3166_1_a3': ('django.db.models.fields.CharField', [], {'max_length': '3', 'null': 'True', 'db_index': 'True'}),
- 'iso_3166_1_numeric': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True', 'db_index': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'printable_name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
- },
- 'catalogue.attributeentity': {
- 'Meta': {'object_name': 'AttributeEntity'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'blank': 'True'}),
- 'type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'entities'", 'to': "orm['catalogue.AttributeEntityType']"})
- },
- 'catalogue.attributeentitytype': {
- 'Meta': {'object_name': 'AttributeEntityType'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'blank': 'True'})
- },
- 'catalogue.attributeoption': {
- 'Meta': {'object_name': 'AttributeOption'},
- 'group': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'options'", 'to': "orm['catalogue.AttributeOptionGroup']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'option': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- 'catalogue.attributeoptiongroup': {
- 'Meta': {'object_name': 'AttributeOptionGroup'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'})
- },
- 'catalogue.category': {
- 'Meta': {'ordering': "['full_name']", 'object_name': 'Category'},
- 'depth': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'full_name': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'db_index': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
- 'numchild': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'path': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '1024'})
- },
- 'catalogue.option': {
- 'Meta': {'object_name': 'Option'},
- 'code': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '128'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'type': ('django.db.models.fields.CharField', [], {'default': "'Required'", 'max_length': '128'})
- },
- 'catalogue.product': {
- 'Meta': {'ordering': "['-date_created']", 'object_name': 'Product'},
- 'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['catalogue.ProductAttribute']", 'through': "orm['catalogue.ProductAttributeValue']", 'symmetrical': 'False'}),
- 'categories': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['catalogue.Category']", 'through': "orm['catalogue.ProductCategory']", 'symmetrical': 'False'}),
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'date_updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_discountable': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'variants'", 'null': 'True', 'to': "orm['catalogue.Product']"}),
- 'product_class': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.ProductClass']", 'null': 'True'}),
- 'product_options': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['catalogue.Option']", 'symmetrical': 'False', 'blank': 'True'}),
- 'recommended_products': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['catalogue.Product']", 'symmetrical': 'False', 'through': "orm['catalogue.ProductRecommendation']", 'blank': 'True'}),
- 'related_products': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'relations'", 'blank': 'True', 'to': "orm['catalogue.Product']"}),
- 'score': ('django.db.models.fields.FloatField', [], {'default': '0.0', 'db_index': 'True'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '128', 'null': 'True', 'blank': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'upc': ('django.db.models.fields.CharField', [], {'max_length': '64', 'unique': 'True', 'null': 'True', 'blank': 'True'})
- },
- 'catalogue.productattribute': {
- 'Meta': {'ordering': "['code']", 'object_name': 'ProductAttribute'},
- 'code': ('django.db.models.fields.SlugField', [], {'max_length': '128'}),
- 'entity_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.AttributeEntityType']", 'null': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'option_group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.AttributeOptionGroup']", 'null': 'True', 'blank': 'True'}),
- 'product_class': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes'", 'null': 'True', 'to': "orm['catalogue.ProductClass']"}),
- 'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'type': ('django.db.models.fields.CharField', [], {'default': "'text'", 'max_length': '20'})
- },
- 'catalogue.productattributevalue': {
- 'Meta': {'object_name': 'ProductAttributeValue'},
- 'attribute': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.ProductAttribute']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'product': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'attribute_values'", 'to': "orm['catalogue.Product']"}),
- 'value_boolean': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'value_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
- 'value_entity': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.AttributeEntity']", 'null': 'True', 'blank': 'True'}),
- 'value_float': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
- 'value_integer': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'value_option': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.AttributeOption']", 'null': 'True', 'blank': 'True'}),
- 'value_richtext': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'value_text': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
- },
- 'catalogue.productcategory': {
- 'Meta': {'ordering': "['-is_canonical']", 'object_name': 'ProductCategory'},
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Category']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_canonical': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
- 'product': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Product']"})
- },
- 'catalogue.productclass': {
- 'Meta': {'ordering': "['name']", 'object_name': 'ProductClass'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'options': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['catalogue.Option']", 'symmetrical': 'False', 'blank': 'True'}),
- 'requires_shipping': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '128'}),
- 'track_stock': ('django.db.models.fields.BooleanField', [], {'default': 'True'})
- },
- 'catalogue.productrecommendation': {
- 'Meta': {'object_name': 'ProductRecommendation'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'primary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'primary_recommendations'", 'to': "orm['catalogue.Product']"}),
- 'ranking': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}),
- 'recommendation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Product']"})
- },
- 'stores.openingperiod': {
- 'Meta': {'ordering': "['weekday']", 'object_name': 'OpeningPeriod'},
- 'end': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'start': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
- 'store': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'opening_periods'", 'to': "orm['stores.Store']"}),
- 'weekday': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- 'stores.store': {
- 'Meta': {'object_name': 'Store'},
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '2000', 'null': 'True', 'blank': 'True'}),
- 'group': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'stores'", 'null': 'True', 'to': "orm['stores.StoreGroup']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_pickup_store': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'location': ('django.contrib.gis.db.models.fields.PointField', [], {'srid': '(32140,)'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'reference': ('django.db.models.fields.CharField', [], {'max_length': '32', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '100', 'unique': 'True', 'null': 'True'})
- },
- 'stores.storeaddress': {
- 'Meta': {'object_name': 'StoreAddress'},
- 'country': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['address.Country']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'line1': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'line2': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'line3': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'line4': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'postcode': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'search_text': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
- 'state': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'store': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'address'", 'unique': 'True', 'to': "orm['stores.Store']"}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'})
- },
- 'stores.storecontact': {
- 'Meta': {'object_name': 'StoreContact'},
- 'email': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'manager_name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
- 'store': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'contact_details'", 'unique': 'True', 'to': "orm['stores.Store']"})
- },
- 'stores.storegroup': {
- 'Meta': {'object_name': 'StoreGroup'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
- 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '100', 'blank': 'True'})
- },
- 'stores.storestock': {
- 'Meta': {'object_name': 'StoreStock'},
- 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'date_updated': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'location': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}),
- 'num_allocated': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'}),
- 'num_in_stock': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'}),
- 'product': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'store_stock'", 'to': "orm['catalogue.Product']"}),
- 'store': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'stock'", 'to': "orm['stores.Store']"})
- }
- }
-
- complete_apps = ['stores']
Please sign in to comment.
Something went wrong with that request. Please try again.