Browse Source

Class TipoNota inclusion

pull/6/head
LeandroRoberto 9 years ago
parent
commit
d2665048e2
  1. 4
      compilacao/forms.py
  2. 14
      compilacao/models.py
  3. 6
      compilacao/urls.py

4
compilacao/forms.py

@ -1,4 +0,0 @@
from django import forms
# place form definition here

14
compilacao/models.py

@ -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

6
compilacao/urls.py

@ -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…
Cancel
Save