π½
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
transitions: [{ | |
async leave(data) { | |
const done = this.async(); | |
loadingAnimation(); | |
await delay(1000); | |
done(); | |
}, | |
enter(data) { contentAnimation(); }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserProfile(TimestampModel): | |
user = models.OneToOneField(User, on_delete=models.CASCADE) | |
picture = models.TextField(null=True, blank=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def update_user_social_data(strategy, *args, **kwargs): | |
response = kwargs['response'] | |
backend = kwargs['backend'] | |
user = kwargs['user'] | |
if response['picture']: | |
url = response['picture'] | |
userProfile_obj = UserProfile() | |
userProfile_obj.user = user | |
userProfile_obj.picture = url |