<commit_before># -*- coding: utf-8 -*-

from django.db import models

from account.models import Account as AccountBase
from account.models import EmailAddress

from django.utils.translation import ugettext_lazy as _

from django.contrib.auth.models import User

class Account(AccountBase):
    
    CATEGORY_LEVELS = [
        (1, u"Estudante/Profissional Não Graduado"),
        (2, u"Estudante de Pós-Graduação"),
        (3, u"Profissional Graduado"),
    ]
    
    category_level = models.IntegerField(_(u"Categoria"),choices=CATEGORY_LEVELS)
    
    class Meta:
        verbose_name = u"Contas"
        AccountBase._meta.get_field("user").verbose_name = u"Usuário"
        AccountBase._meta.get_field("timezone").verbose_name = u"Fuso Horário"
        AccountBase._meta.get_field("language").verbose_name = u"Idioma"

class Payment(models.Model):
    
    date = models.DateField(_(u"Data"))
    time = models.TimeField(_(u"Hora"))
    note = models.TextField(_(u"Observação"))
    confirmation = models.BooleanField(_(u"Pagamento"), default=False, help_text=_(u"Clique aqui para confirmar o pagamento da inscrição."))
    #user = models.OneToOneField(User, null=True, blank=True, verbose_name='Usuário')
    email = models.OneToOneField(EmailAddress, null=True, blank=True, verbose_name='Usuário')
    class Meta:
         verbose_name = u"Pagamento"
    
    def __unicode__(self):
        return unicode(self.email)<commit_msg>Set note as not riqured in account payments.<commit_after># -*- coding: utf-8 -*-

from django.db import models

from account.models import Account as AccountBase
from account.models import EmailAddress

from django.utils.translation import ugettext_lazy as _

from django.contrib.auth.models import User

class Account(AccountBase):
    
    CATEGORY_LEVELS = [
        (1, u"Estudante/Profissional Não Graduado"),
        (2, u"Estudante de Pós-Graduação"),
        (3, u"Profissional Graduado"),
    ]
    
    category_level = models.IntegerField(_(u"Categoria"),choices=CATEGORY_LEVELS)
    
    class Meta:
        verbose_name = u"Contas"
        AccountBase._meta.get_field("user").verbose_name = u"Usuário"
        AccountBase._meta.get_field("timezone").verbose_name = u"Fuso Horário"
        AccountBase._meta.get_field("language").verbose_name = u"Idioma"

class Payment(models.Model):
    
    date = models.DateField(_(u"Data"))
    time = models.TimeField(_(u"Hora"))
    note = models.TextField(_(u"Observação"), blank=True)
    confirmation = models.BooleanField(_(u"Pagamento"), default=False, help_text=_(u"Clique aqui para confirmar o pagamento da inscrição."))
    #user = models.OneToOneField(User, null=True, blank=True, verbose_name='Usuário')
    email = models.OneToOneField(EmailAddress, null=True, blank=True, verbose_name='Usuário')
    class Meta:
         verbose_name = u"Pagamento"
    
    def __unicode__(self):
        return unicode(self.email)
{'fraction_non_alphanumeric': 0.11750599520383694, 'fraction_numerical': 0.0027406646111682084, 'mean_word_length': 3.8993288590604025, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4121853', 'n_tokens_mistral': 948, 'n_tokens_neox': 938, 'n_words': 187}