<s> from __future__ import unicode_literals <EOL> from django . db import models , migrations <EOL> def initial_photosizes ( apps , schema_editor ) : <EOL> PhotoSize = apps . get_model ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> if PhotoSize . objects . all ( ) . count ( ) > <NUM_LIT:0> : <EOL> return <EOL> PhotoSize . objects . create ( name = '<STR_LIT>' , <EOL> width = <NUM_LIT:100> , <EOL> height = <NUM_LIT> , <EOL> crop = True , <EOL> pre_cache = True , <EOL> increment_count = False ) <EOL> PhotoSize . objects . create ( name = '<STR_LIT>' , <EOL> width = <NUM_LIT:100> , <EOL> height = <NUM_LIT> , <EOL> crop = True , <EOL> pre_cache = True , <EOL> increment_count = False ) <EOL> PhotoSize . objects . create ( name = '<STR_LIT>' , <EOL> width = <NUM_LIT> , <EOL> crop = False , <EOL> pre_cache = True , <EOL> increment_count = True ) <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> operations = [ <EOL> migrations . RunPython ( initial_photosizes ) , <EOL> ] </s>
