- identity_url = IdentityURL(url=u'http://eevee.livejournal.com/')
- user = User(name=u'Eevee')
- user.identity_urls.append(identity_url)
+ if not User.query.filter_by(name=u'eevee').count():
+ identity_url = IdentityURL(url=u'http://eevee.livejournal.com/')
+ user = User(name=u'eevee')
+ user.identity_urls.append(identity_url)