# Path: ifiltr_site/models.py
# class Category(models.Model):
#   parent = models.ForeignKey('self', blank=True, null=True, on_delete=models.SET_NULL)
#   name = models.CharField(max_length=50)
#   depth = models.IntegerField()


import os
from ifiltr_site.models import Category
											  'Foreclosure':{},
											  'Houseboat':{},
											  'Income/Investment':{},
											  'Loft':{},
											  'Lot/Land':{},
											  'Mobile/Manufactured':{},
											  'Multi-Family Home':{},
											  'New Home':{},
											  'Ranch [Single Family Home]':{},
											  'Resort':{},
											  'Studio':{},
											  'TIC':{},
											  'Timeshare':{},
											  'Townhome':{}}
  
  mainCategories['Fashion']['Shirts'] = [
    'Size',
    'Style',
    'Color',
    'Brand',
    'Minimum Price',
    'Max Price',
    'Sleeve Length'
  ]

  print 'deleting errthang'
  Category.objects.all().delete()

  print mainCategories.keys()
  for mainCat in mainCategories.keys():

# Path: ifiltr_site/models.py
# class Category(models.Model):
#   parent = models.ForeignKey('self', blank=True, null=True, on_delete=models.SET_NULL)
#   name = models.CharField(max_length=50)
#   depth = models.IntegerField()


# Path: populateDb.py
import os
from ifiltr_site.models import Category

											  'Foreclosure':{},
											  'Houseboat':{},
											  'Income/Investment':{},
											  'Loft':{},
											  'Lot/Land':{},
											  'Mobile/Manufactured':{},
											  'Multi-Family Home':{},
											  'New Home':{},
											  'Ranch [Single Family Home]':{},
											  'Resort':{},
											  'Studio':{},
											  'TIC':{},
											  'Timeshare':{},
											  'Townhome':{}}
  
  mainCategories['Fashion']['Shirts'] = [
    'Size',
    'Style',
    'Color',
    'Brand',
    'Minimum Price',
    'Max Price',
    'Sleeve Length'
  ]

  print 'deleting errthang'
  Category.objects.all().delete()

  print mainCategories.keys()
  for mainCat in mainCategories.keys():

    thisCat = Category(parent=None, name=mainCat, depth = 0)