Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OPCIONES_GENERO_CHOICES = (
- ('Masculino', 'Masculino'),
- ('Femenino', 'Femenino'),
- )
- OPCIONES_ESTADO_CIVIL_CHOICES = (
- ('Casado(a)', 'Casado(a)'),
- ('Soltero(a)', 'Soltero(a)'),
- ('Viudo(a)', 'Viudo(a)')
- )
- OPCIONES_GRADO_INSTRUCCION_CHOICES = (
- ('Bachiller', 'Bachiller'),
- ('Universitaria', 'Universitaria'),
- ('Tecnico Superior', 'Tecnico superior'),
- ('Tecnico Medio', 'Tecnico Medio')
- )
- OPCIONES_CARGO_CHOICES = (
- ('Director(a)', 'Director(a)'),
- ('Analista', 'Analista'),
- ('Supervisor(a)', 'Supervisor(a)'),
- ('Empleado(a)','Empleado(a)'),
- ('Seguridad','Seguridad'),
- ('Supervisor seguridad', 'Supervisor de Seguridad'),
- ('Contratado(a)', 'Contratado(a)'),
- ('Obrero(a)', 'Obrero(a)')
- )
- codigo_empleado = models.IntegerField(unique=True)
- nombre = models.CharField(max_length=15)
- apellidos = models.CharField(max_length=15)
- ci = models.IntegerField(unique=True)
- cargo = models.CharField(max_length=15, choices=OPCIONES_CARGO_CHOICES, blank=True, null=True)
- creado = models.DateTimeField(auto_now_add=True)
- genero = models.CharField(max_length=12, choices=OPCIONES_GENERO_CHOICES, blank=True, null=True)
- email = models.EmailField()
- telefono = models.CharField(max_length=12)
- direccion = models.CharField(max_length=200)
- estado_civil = models.CharField(max_length=255, choices=OPCIONES_ESTADO_CIVIL_CHOICES, blank=True, null=True)
- grado_instruccion = models.CharField(max_length=255, choices=OPCIONES_GRADO_INSTRUCCION_CHOICES, blank=True, null=True)
- numero_de_hijos = models.IntegerField()
- fecha_actualizacion = models.DateTimeField(auto_now=True)
- def __str__(self):
- return '%s'% (self.nombre)
Add Comment
Please, Sign In to add comment