# Path: src/moviesapp/models.py
# class User(AbstractUser, UserBase):
#     only_for_friends = models.BooleanField(
#         verbose_name=_("Privacy"), default=False, help_text=_("Show my lists only to friends")
#     )
#     language = models.CharField(
#         max_length=2, choices=settings.LANGUAGES, default=settings.LANGUAGE_CODE, verbose_name=_("Language")
#     )
#     avatar_small = models.URLField(null=True, blank=True)
#     avatar_big = models.URLField(null=True, blank=True)
#     loaded_initial_data = models.BooleanField(default=False)
# 
#     def __str__(self):
#         name = self.get_full_name()
#         if name:
#             return name
#         return self.username
# 
#     def _get_movies_number(self, list_id):
#         return self.get_records().filter(list_id=list_id).count()
# 
#     @property
#     def movies_watched_number(self):
#         return self._get_movies_number(List.WATCHED)
# 
#     @property
#     def movies_to_watch_number(self):
#         return self._get_movies_number(List.TO_WATCH)


from django.forms import ModelForm
from .models import User



class UserForm(ModelForm):
    class Meta:
        model = User
        fields = ("language", "only_for_friends", "username", "first_name", "last_name")


# Path: src/moviesapp/models.py
# class User(AbstractUser, UserBase):
#     only_for_friends = models.BooleanField(
#         verbose_name=_("Privacy"), default=False, help_text=_("Show my lists only to friends")
#     )
#     language = models.CharField(
#         max_length=2, choices=settings.LANGUAGES, default=settings.LANGUAGE_CODE, verbose_name=_("Language")
#     )
#     avatar_small = models.URLField(null=True, blank=True)
#     avatar_big = models.URLField(null=True, blank=True)
#     loaded_initial_data = models.BooleanField(default=False)
# 
#     def __str__(self):
#         name = self.get_full_name()
#         if name:
#             return name
#         return self.username
# 
#     def _get_movies_number(self, list_id):
#         return self.get_records().filter(list_id=list_id).count()
# 
#     @property
#     def movies_watched_number(self):
#         return self._get_movies_number(List.WATCHED)
# 
#     @property
#     def movies_to_watch_number(self):
#         return self._get_movies_number(List.TO_WATCH)


# Path: src/moviesapp/forms.py
from django.forms import ModelForm
from .models import User




class UserForm(ModelForm):
    class Meta:
        model = User
        fields = ("language", "only_for_friends", "username", "first_name", "last_name")


    def __init__(self, *args, **kwargs):