Mikhail Korobov  committed 0898688 Merge

Merged in syabro/django-vkontakte-iframe (pull request #7)

Fixed The database backend does not accept 0 as a value for AutoField. if country is empty

  • Participants
  • Parent commits a6841ff, 8a9cc29

Comments (0)

Files changed (1)

File vk_iframe/

                 setattr(user_profile, key, vk_profile[key])
         country_id = vk_profile.get('country', None)
-        if country_id:
+        if country_id and country_id!=u'0':
             country, created = Country.objects.get_or_create(id=country_id)
    = country