Advertisement
Guest User

models.py

a guest
Dec 17th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.70 KB | None | 0 0
  1. from django.db import models
  2. from django.contrib.auth.models import User
  3. from django.utils.translation import ugettext as _
  4.  
  5.  
  6. class Incidencia(models.Model):
  7.     EstadosIncidencias = (
  8.         (0, _('Reported')),
  9.         (2, _('Solved')),
  10.         (3, _('Canceled')),
  11.         (4, _('Working on it')),
  12.     )
  13.  
  14.     client = models.ForeignKey('Client', null=True, blank=True)
  15.     descripcion = models.TextField(blank=True)
  16.     comentario = models.TextField(blank=True)
  17.     respuesta = models.TextField(blank=True)
  18.     estado = models.IntegerField(choices=EstadosIncidencias, default=0)
  19.     creacion = models.DateField(auto_now_add=True,
  20.                                 verbose_name=_('Creation date'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement