<commit_before>from django.views.generic import ListView, CreateView, UpdateView, DeleteView
from django.urls import reverse_lazy

from email_signature.models import Account


class AccountListView(ListView):
    model = Account
    context_object_name = 'accounts'


class AccountCreateView(CreateView):
    model = Account
    fields = ('codigo', 'nome', 'setor', 'email', 'tipo_num_1', 'num_1',
              'tipo_num_2', 'num_2', 'dir_servidor', 'dir_local')
    success_url = reverse_lazy('email_signature:account_list')


class AccountUpdateView(UpdateView):
    model = Account
    fields = ('codigo', 'nome', 'setor', 'email', 'tipo_num_1', 'num_1',
              'tipo_num_2', 'num_2', 'dir_servidor', 'dir_local')
    success_url = reverse_lazy('email_signature:account_list')


class AccountDeleteView(DeleteView):
    model = Account
    success_url = reverse_lazy('email_signature:account_list')<commit_msg>para poder editar o campo arquivo<commit_after>from django.views.generic import ListView, CreateView, UpdateView, DeleteView
from django.urls import reverse_lazy

from email_signature.models import Account


class AccountListView(ListView):
    model = Account
    context_object_name = 'accounts'


class AccountCreateView(CreateView):
    model = Account
    fields = ('codigo', 'nome', 'setor', 'email', 'tipo_num_1', 'num_1',
              'tipo_num_2', 'num_2', 'dir_servidor', 'dir_local', 'arquivo')
    success_url = reverse_lazy('email_signature:account_list')


class AccountUpdateView(UpdateView):
    model = Account
    fields = ('codigo', 'nome', 'setor', 'email', 'tipo_num_1', 'num_1',
              'tipo_num_2', 'num_2', 'dir_servidor', 'dir_local', 'arquivo')
    success_url = reverse_lazy('email_signature:account_list')


class AccountDeleteView(DeleteView):
    model = Account
    success_url = reverse_lazy('email_signature:account_list')
{'fraction_non_alphanumeric': 0.12101910828025478, 'fraction_numerical': 0.008492569002123142, 'mean_word_length': 5.080645161290323, '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': '349734', 'n_tokens_mistral': 612, 'n_tokens_neox': 599, 'n_words': 128}