<s> from __future__ import unicode_literals <EOL> from django . db import models , migrations <EOL> def add_country_to_online_events ( apps , schema_editor ) : <EOL> """<STR_LIT>""" <EOL> Event = apps . get_model ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> Tag = apps . get_model ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> online , _ = Tag . objects . get_or_create ( <EOL> name = '<STR_LIT>' , <EOL> defaults = { '<STR_LIT>' : '<STR_LIT>' } , <EOL> ) <EOL> latitude = - <NUM_LIT> <EOL> longitude = - <NUM_LIT> <EOL> Event . objects . filter ( country__isnull = True , tags__in = [ online ] ) . update ( country = '<STR_LIT>' , latitude = latitude , longitude = longitude , <EOL> venue = '<STR_LIT>' ) <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> operations = [ <EOL> migrations . RunPython ( add_country_to_online_events ) , <EOL> ] </s>
