Did I find the right examples for you? yes no

All Samples(6)  |  Call(5)  |  Derive(0)  |  Import(1)

src/m/e/mess-HEAD/mess/data_migration/free103_example2.py   mess(Download)
 
from free103.awe.models import Location, EventType, Event, Artist
from util import html_unescape
 
phone_re = re.compile(r'\D')
            location = loc_list[0]
        else:
            loc = Location(name=html_unescape(location), url=location_url, address=address, address2=address2, city=city, state=state, country=country, postal_code=postal_code, phone=phone)
            loc.save()
            location = loc
                # give new IDs because of overlap between old and new
                #id=id, 
                name=html_unescape(name), 
                active=active, 
                ongoing=ongoing, 
                admission=admission, 
                brief_description=html_unescape(description), 
                extra_artists=html_unescape(extra_artists),