|
@ -1,6 +1,7 @@ |
|
|
from django.db import models |
|
|
from django.db import models |
|
|
from django.utils.translation import ugettext_lazy as _ |
|
|
from django.utils.translation import ugettext_lazy as _ |
|
|
from sapl.utils import YES_NO_CHOICES, make_choices |
|
|
|
|
|
|
|
|
from sapl.utils import YES_NO_CHOICES |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TipoNota(models.Model): |
|
|
class TipoNota(models.Model): |
|
@ -41,7 +42,7 @@ class TipoDispositivo(models.Model): |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
nome = models.CharField( |
|
|
nome = models.CharField( |
|
|
max_length=50, unique = True, verbose_name=_('Nome')) |
|
|
max_length=50, unique=True, verbose_name=_('Nome')) |
|
|
class_css = models.CharField( |
|
|
class_css = models.CharField( |
|
|
max_length=20, verbose_name=_('Classe CSS')) |
|
|
max_length=20, verbose_name=_('Classe CSS')) |
|
|
rotulo_prefixo_html = models.CharField( |
|
|
rotulo_prefixo_html = models.CharField( |
|
@ -93,8 +94,6 @@ class TipoDispositivo(models.Model): |
|
|
choices=FORMATO_NUMERACAO, |
|
|
choices=FORMATO_NUMERACAO, |
|
|
verbose_name=_('Formato da Variação 5')) |
|
|
verbose_name=_('Formato da Variação 5')) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Meta: |
|
|
class Meta: |
|
|
verbose_name = _('Tipo de Dispositivo') |
|
|
verbose_name = _('Tipo de Dispositivo') |
|
|
verbose_name_plural = _('Tipos de Dispositivo') |
|
|
verbose_name_plural = _('Tipos de Dispositivo') |
|
|