# Path: lkdcourses/profiles/models.py
# class UserProfile(auth_models.AbstractUser):
#     address = models.TextField("Adres", blank=True, null=True)
#     phone = models.CharField("Telefon numarası", max_length=20, blank=True, null=True)
#     company = models.CharField(
#         "Çalıştığı şirket",
#         blank=True,
#         null=True,
#         help_text="Kamu çalışanları bağlı oldukları müdürlüğü yazabilir.",
#         max_length=255
#     )
#     tc_identifier = models.IntegerField("Tc kimlik numarası", blank=True, null=True)
#     public_officer = models.NullBooleanField("Kamu çalışanı", default=False, blank=True, null=True)
#     role = models.CharField("Bağlı olunan departman/bölüm", blank=True, null=True, max_length=255)
#     birthdate = models.DateField("Doğum tarihi", blank=True, null=True)
#     lkd_id = models.CharField("LKD üye numarası", blank=True, null=True, max_length=32)
#     inetd_id = models.CharField("INETD üye numarası", blank=True, null=True, max_length=32)
#     github_username = models.CharField("Github kullanıcı adı", max_length=64, blank=True, null=True)
# 
#     def __str__(self):
#         return smart_text(self.username)
# 
#     class Meta:
#         verbose_name = "Kullanıcı profili"
#         verbose_name_plural = "Kullanıcı profilleri"


from django.contrib.auth.forms import UserCreationForm as AuthModuleUserCreationForm
from django.forms import ModelForm
from .models import UserProfile
from __future__ import unicode_literals




class UserCreationForm(AuthModuleUserCreationForm):

    required_css_class = 'required'

    class Meta:
        model = UserProfile
        fields = ("username",)


class UserForm(ModelForm):

    class Meta:

# Path: lkdcourses/profiles/models.py
# class UserProfile(auth_models.AbstractUser):
#     address = models.TextField("Adres", blank=True, null=True)
#     phone = models.CharField("Telefon numarası", max_length=20, blank=True, null=True)
#     company = models.CharField(
#         "Çalıştığı şirket",
#         blank=True,
#         null=True,
#         help_text="Kamu çalışanları bağlı oldukları müdürlüğü yazabilir.",
#         max_length=255
#     )
#     tc_identifier = models.IntegerField("Tc kimlik numarası", blank=True, null=True)
#     public_officer = models.NullBooleanField("Kamu çalışanı", default=False, blank=True, null=True)
#     role = models.CharField("Bağlı olunan departman/bölüm", blank=True, null=True, max_length=255)
#     birthdate = models.DateField("Doğum tarihi", blank=True, null=True)
#     lkd_id = models.CharField("LKD üye numarası", blank=True, null=True, max_length=32)
#     inetd_id = models.CharField("INETD üye numarası", blank=True, null=True, max_length=32)
#     github_username = models.CharField("Github kullanıcı adı", max_length=64, blank=True, null=True)
# 
#     def __str__(self):
#         return smart_text(self.username)
# 
#     class Meta:
#         verbose_name = "Kullanıcı profili"
#         verbose_name_plural = "Kullanıcı profilleri"


# Path: lkdcourses/profiles/forms.py
from django.contrib.auth.forms import UserCreationForm as AuthModuleUserCreationForm
from django.forms import ModelForm
from .models import UserProfile

from __future__ import unicode_literals




class UserCreationForm(AuthModuleUserCreationForm):

    required_css_class = 'required'

    class Meta:
        model = UserProfile
        fields = ("username",)


class UserForm(ModelForm):

    class Meta:

        model = UserProfile