# Path: src/accounts/models.py
# class UserProfile(UserenaBaseProfile):
#     user = models.OneToOneField(User,
#                                 unique=True,
#                                 verbose_name=_('user'),
#                                 related_name='my_profile')
# 
#     source = models.ForeignKey('UserSource', null=True)
# 
#     favourite_snack = models.CharField(_('favourite snack'),
#                                        max_length=5)
# 
#     follows = models.ManyToManyField('presenters.Presenter')
#     
#     def __init__(self, *args, **kwargs):
#         super(UserProfile, self).__init__(*args, **kwargs)
#         if self.pk is None:
#             self.source = UserSource.objects.get(flag=0)


from django import forms
from .models import UserProfile
# -*- coding: utf-8 -*-


class EditProfileForm(forms.ModelForm):
    class Meta:
        model = UserProfile

# Path: src/accounts/models.py
# class UserProfile(UserenaBaseProfile):
#     user = models.OneToOneField(User,
#                                 unique=True,
#                                 verbose_name=_('user'),
#                                 related_name='my_profile')
# 
#     source = models.ForeignKey('UserSource', null=True)
# 
#     favourite_snack = models.CharField(_('favourite snack'),
#                                        max_length=5)
# 
#     follows = models.ManyToManyField('presenters.Presenter')
#     
#     def __init__(self, *args, **kwargs):
#         super(UserProfile, self).__init__(*args, **kwargs)
#         if self.pk is None:
#             self.source = UserSource.objects.get(flag=0)


# Path: src/accounts/forms.py
from django import forms
from .models import UserProfile

# -*- coding: utf-8 -*-


class EditProfileForm(forms.ModelForm):
    class Meta:
        model = UserProfile

        fields = ['mugshot']