Commits

Anonymous committed f4803c0

Поменял модель Profile на абстрактную

Comments (0)

Files changed (2)

vk_iframe/backends.py

         return user
 
     def configure_user(self, vk_profile, user):
-        user_profile = user.vk_profile
+        user_profile = user.get_profile()
         for key in vk_profile:
             if key not in ['city', 'country']:
                 setattr(user_profile, key, vk_profile[key])

vk_iframe/models.py

     graduation =    CharField(u'Год выпуска', max_length=4, blank=True, null=True)
 
     class Meta:
+        abstract = True
         verbose_name = u'[vk] Данные о пользователе'
         verbose_name_plural = u'[vk] Данные о пользователях'