Guest User

Untitled

a guest
Dec 6th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. OPCIONES_GENERO_CHOICES = (
  2. ('Masculino', 'Masculino'),
  3. ('Femenino', 'Femenino'),
  4. )
  5. OPCIONES_ESTADO_CIVIL_CHOICES = (
  6. ('Casado(a)', 'Casado(a)'),
  7. ('Soltero(a)', 'Soltero(a)'),
  8. ('Viudo(a)', 'Viudo(a)')
  9. )
  10. OPCIONES_GRADO_INSTRUCCION_CHOICES = (
  11. ('Bachiller', 'Bachiller'),
  12. ('Universitaria', 'Universitaria'),
  13. ('Tecnico Superior', 'Tecnico superior'),
  14. ('Tecnico Medio', 'Tecnico Medio')
  15. )
  16. OPCIONES_CARGO_CHOICES = (
  17. ('Director(a)', 'Director(a)'),
  18. ('Analista', 'Analista'),
  19. ('Supervisor(a)', 'Supervisor(a)'),
  20. ('Empleado(a)','Empleado(a)'),
  21. ('Seguridad','Seguridad'),
  22. ('Supervisor seguridad', 'Supervisor de Seguridad'),
  23. ('Contratado(a)', 'Contratado(a)'),
  24. ('Obrero(a)', 'Obrero(a)')
  25. )
  26.  
  27. codigo_empleado = models.IntegerField(unique=True)
  28. nombre = models.CharField(max_length=15)
  29. apellidos = models.CharField(max_length=15)
  30. ci = models.IntegerField(unique=True)
  31. cargo = models.CharField(max_length=15, choices=OPCIONES_CARGO_CHOICES, blank=True, null=True)
  32. creado = models.DateTimeField(auto_now_add=True)
  33. genero = models.CharField(max_length=12, choices=OPCIONES_GENERO_CHOICES, blank=True, null=True)
  34. email = models.EmailField()
  35. telefono = models.CharField(max_length=12)
  36. direccion = models.CharField(max_length=200)
  37. estado_civil = models.CharField(max_length=255, choices=OPCIONES_ESTADO_CIVIL_CHOICES, blank=True, null=True)
  38. grado_instruccion = models.CharField(max_length=255, choices=OPCIONES_GRADO_INSTRUCCION_CHOICES, blank=True, null=True)
  39. numero_de_hijos = models.IntegerField()
  40. fecha_actualizacion = models.DateTimeField(auto_now=True)
  41.  
  42. def __str__(self):
  43. return '%s'% (self.nombre)
Add Comment
Please, Sign In to add comment