Created
October 30, 2019 21:40
Egresados
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from django.db import models | |
# Create your models here. | |
class Egresados_datos(models.Model): | |
num_cont= models.CharField(max_length=10, primary_key= True,verbose_name='Numero de Control') | |
nombre = models.CharField(max_length=100) | |
apellido = models.CharField(max_length=100) | |
IS = 'IS' | |
LC = 'LC' | |
LAE = 'LAE' | |
CARRERA_CHOICES = ( | |
('IS','Ing. en Sistemas'), | |
('LC', 'Lic. en Contaduria'), | |
('LAE', 'Lic. en Administracion de Empresas')) | |
Carrera = models.CharField(max_length=30,choices=CARRERA_CHOICES,default=IS,) | |
SEXO=(('F','Femenino'),('M','Masculino')) #se hace arreglo | |
Sexo = models.CharField(max_length=1,choices=SEXO,default='M') | |
Edad = models.IntegerField(help_text='Solo mayores de edad') | |
Trabajo = models.BooleanField(help_text='Marque la casilla si es asi',verbose_name='¿Se encuentra trabajando actualmente?') | |
Lugar_de_trabajo = models.CharField(max_length=100) | |
Sueldo = models.IntegerField() | |
Trabajo_area = models.BooleanField(help_text='Marque la casilla si es asi',verbose_name='¿Trabaja en el area de su carrera?') | |
email = models.EmailField() | |
Telefono = models.CharField(max_length=12) | |
fotografia = models.ImageField(default='Agregar imagen',help_text='Foto de no mas de 3 meses') | |
descripcion_trabajo = models.CharField(max_length=1000,verbose_name='Informacion relevante a su carrera profesional: ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment