mirror of https://github.com/interlegis/sapl.git
LeandroRoberto
9 years ago
3 changed files with 13 additions and 11 deletions
@ -1,4 +0,0 @@ |
|||||
from django import forms |
|
||||
|
|
||||
|
|
||||
# place form definition here |
|
@ -1,4 +1,16 @@ |
|||||
from django.db import models |
from django.db import models |
||||
|
from django.utils.translation import ugettext_lazy as _ |
||||
|
|
||||
|
|
||||
# Create your models here. |
class TipoNota(models.Model): |
||||
|
sigla = models.CharField(max_length=10, verbose_name=_('Sigla')) |
||||
|
nome = models.CharField(max_length=50, verbose_name=_('Nome')) |
||||
|
modelo = models.TextField( |
||||
|
blank=True, null=True, verbose_name=_('Modelo')) |
||||
|
|
||||
|
class Meta: |
||||
|
verbose_name = _('Tipo de Nota') |
||||
|
verbose_name_plural = _('Tipos de Nota') |
||||
|
|
||||
|
def __str__(self): |
||||
|
return self.sigla |
||||
|
@ -1,6 +0,0 @@ |
|||||
try: |
|
||||
from django.conf.urls import * |
|
||||
except ImportError: # django < 1.4 |
|
||||
from django.conf.urls.defaults import * |
|
||||
|
|
||||
# place app url patterns here |
|
Loading…
Reference in new issue