# -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-03-22 15:10
from __future__ import unicode_literals
from django.db import migrations
features = [
{'name': 'First Aid Kit', 'category': 1},
{'name': 'Smoke Detector', 'category': 1},
{'name': 'Carbon Monoxide Detector', 'category': 1},
{'name': 'Fire Extinguisher', 'category': 1},
{'name': 'Burglar Alarm', 'category': 1},
{'name': 'Smoking Friendly', 'category': 2},
{'name': 'Pets Friendly', 'category': 2},
{'name': 'Events Friendly', 'category': 2},
{'name': 'Wheelchair Friendly', 'category': 2},
{'name': 'Children Friendly', 'category': 2},
{'name': 'Stove', 'category': 3},
{'name': 'Dishwasher', 'category': 3},
{'name': 'Oven', 'category': 3},
{'name': 'Toaster', 'category': 3},
{'name': 'Coffee Maker - Espresso', 'category': 3},
{'name': 'Coffee Maker - Regular', 'category': 3},
{'name': 'Microwave', 'category': 3},
{'name': 'Refridgerator', 'category': 3},
{'name': 'Internet/Wifi', 'category': 4},
{'name': 'Pool - Indoor', 'category': 4},
{'name': 'Pool - Outdoor', 'category': 4},
{'name': 'Pool - Private', 'category': 4},
{'name': 'Pool - Shared', 'category': 4},
{'name': 'Hot Tub', 'category': 4},
{'name': 'Jacuzzi', 'category': 4},
{'name': 'Shampoo', 'category': 4},
{'name': 'Bodywash', 'category': 4},
{'name': 'Toilet Paper', 'category': 4},
{'name': 'Towels', 'category': 4},
{'name': 'Bed sheets', 'category': 4},
{'name': 'Fireplace - Electric', 'category': 4},
{'name': 'Fireplace - Furnace', 'category': 4},
{'name': 'Hair Dryer', 'category': 4},
{'name': 'Heating', 'category': 4},
{'name': 'Air Conditioning', 'category': 4},
{'name': 'Breakfast', 'category': 4},
{'name': 'Laundry - Washer', 'category': 4},
{'name': 'Laundry - Washer - In-unit', 'category': 4},
{'name': 'Laundry - Washer - Coin-op', 'category': 4},
{'name': 'Laundry - Washer - Shared', 'category': 4},
{'name': 'Laundry - Dryer - In-unit', 'category': 4},
{'name': 'Laundry - Dryer - Coin-op', 'category': 4},
{'name': 'Laundry - Dryer - Shared', 'category': 4},
{'name': 'Parking - Carport', 'category': 4},
{'name': 'Parking - Street', 'category': 4},
{'name': 'Parking - Private', 'category': 4},
{'name': 'Parking - Garage', 'category': 4},
{'name': 'Iron', 'category': 4},
{'name': 'TV - Cable', 'category': 4},
{'name': 'TV - Satellite', 'category': 4},
{'name': 'Stove', 'category': 4},
{'name': 'Dishwasher', 'category': 4},
{'name': 'Crib', 'category': 4},
{'name': 'Grill/BBQ - Grill', 'category': 4},
{'name': 'Grill/BBQ - Outdoor', 'category': 4},
{'name': 'Oven', 'category': 4},
{'name': 'Crib', 'category': 4},
{'name': 'Baby Bath', 'category': 4},
{'name': 'Sauna', 'category': 4},
{'name': 'Toaster', 'category': 4},
{'name': 'Bicycles', 'category': 4},
{'name': 'Coffee Maker', 'category': 4},
{'name': 'Fax', 'category': 4},
{'name': 'Microwave', 'category': 4},
{'name': 'Refridgerator', 'category': 4},
{'name': 'Housekeeping', 'category': 4},
{'name': 'Conference Room', 'category': 4},
{'name': 'Balcony', 'category': 4},
{'name': 'Deck', 'category': 4},
{'name': 'Patio', 'category': 4},
{'name': 'CD Player', 'category': 4},
{'name': 'DVD Player', 'category': 4},
{'name': 'Sound System', 'category': 4},
{'name': 'Computer', 'category': 4},
{'name': 'Electric Kettle', 'category': 4},
{'name': 'Freezer', 'category': 4},
{'name': 'Fenced Yard', 'category': 4},
{'name': 'Radio', 'category': 4},
{'name': 'Tennis', 'category': 5},
{'name': 'Boating', 'category': 5},
{'name': 'Paragliding', 'category': 5},
{'name': 'Parasailing', 'category': 5},
{'name': 'Cross Country Skiing', 'category': 5},
{'name': 'Cycling', 'category': 5},
{'name': 'Fishing', 'category': 5},
{'name': 'Foosball', 'category': 5},
{'name': 'Golf', 'category': 5},
{'name': 'Hiking', 'category': 5},
{'name': 'Hot Air Ballooning', 'category': 5},
{'name': 'Horseback Riding', 'category': 5},
{'name': 'Ice Skating', 'category': 5},
{'name': 'Jet Skiing', 'category': 5},
{'name': 'Kayaking', 'category': 5},
{'name': 'Miniature Golf', 'category': 5},
{'name': 'Mountain Biking', 'category': 5},
{'name': 'Mountain Climbing', 'category': 5},
{'name': 'Moutaineering', 'category': 5},
{'name': 'Ping Pong', 'category': 5},
{'name': 'Pool Table', 'category': 5},
{'name': 'Raquetball', 'category': 5},
{'name': 'Rafting', 'category': 5},
{'name': 'Rock Climbing', 'category': 5},
{'name': 'Roller Blading', 'category': 5},
{'name': 'Shuffleboard', 'category': 5},
{'name': 'Skiing', 'category': 5},
{'name': 'Snowboarding', 'category': 5},
{'name': 'Sledding', 'category': 5},
{'name': 'Snorkeling', 'category': 5},
{'name': 'Snowmobiling', 'category': 5},
{'name': 'Surfing', 'category': 5},
{'name': 'Water Skiing', 'category': 5},
{'name': 'Water Tubing', 'category': 5},
{'name': 'Wildlife Viewing', 'category': 5},
{'name': 'Basketball', 'category': 5},
{'name': 'Squash', 'category': 5},
{'name': 'Continental Divide', 'category': 6},
{'name': 'Open Spaces', 'category': 6},
{'name': 'Mountain View', 'category': 6},
{'name': 'River', 'category': 6},
{'name': 'Wooded', 'category': 6},
{'name': 'Common Landscape', 'category': 6},
{'name': 'Complex', 'category': 6},
{'name': 'Town', 'category': 6},
{'name': 'Resort', 'category': 6},
{'name': 'Water', 'category': 6},
{'name': 'Ski Area', 'category': 6},
{'name': 'Valley', 'category': 6},
{'name': 'Shuttle Bus', 'category': 7},
{'name': 'Elevators', 'category': 7},
{'name': 'Stairs', 'category': 7},
{'name': 'Fire Extinguisher', 'category': 7},
{'name': 'Theme Parks', 'category': 8},
{'name': 'Recreation Center', 'category': 8},
{'name': 'Fitness Center', 'category': 8},
{'name': 'ATM Bank', 'category': 8},
{'name': 'Day Care', 'category': 8},
{'name': 'Churches', 'category': 8},
{'name': 'Cinemas', 'category': 8},
{'name': 'Sauna', 'category': 8},
{'name': 'Spa', 'category': 8},
{'name': 'Laundromat', 'category': 8},
{'name': 'Massage', 'category': 8},
{'name': 'Museums', 'category': 8},
{'name': 'Playground', 'category': 8},
{'name': 'Theatre', 'category': 8},
{'name': 'Synagogues', 'category': 8},
{'name': 'Winery Tours', 'category': 8},
]
def create_supported_features(apps, schema_editor):
Feature = apps.get_model('listings', 'Feature')
Feature.objects.bulk_create(
Feature(supported=True, **f) for f in features
)
def noop(apps, schema_editor):
pass
class Migration(migrations.Migration):
dependencies = [
('listings', '0078_auto_20180322_1500'),
]
operations = [
migrations.RunPython(create_supported_features, noop)
]