Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.db import models
- from django.contrib.auth.models import User
- from django.utils.translation import ugettext as _
- class Incidencia(models.Model):
- EstadosIncidencias = (
- (0, _('Reported')),
- (2, _('Solved')),
- (3, _('Canceled')),
- (4, _('Working on it')),
- )
- client = models.ForeignKey('Client', null=True, blank=True)
- descripcion = models.TextField(blank=True)
- comentario = models.TextField(blank=True)
- respuesta = models.TextField(blank=True)
- estado = models.IntegerField(choices=EstadosIncidencias, default=0)
- creacion = models.DateField(auto_now_add=True,
- verbose_name=_('Creation date'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement