~co2093/+junk/proyectohdp

« back to all changes in this revision

Viewing changes to tarea/partidos/models.py

  • Committer: Omar
  • Date: 2019-07-16 05:48:01 UTC
  • Revision ID: coh.2093@gmail.com-20190716054801-dcy81ielt8j74nby
Pruebas finales

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from django.db import models
2
 
 
 
2
from candidatos.models import Candidato
3
3
# Create your models here.
4
4
 
5
5
class Partido(models.Model):
6
6
        codigo                  = models.CharField(max_length=2)
7
7
        nombre                  = models.CharField(max_length=50)
8
 
        bandera                 = models.ImageField()
 
8
        bandera                 = models.ImageField(null=True)
 
9
        candidado               = models.OneToOneField(Candidato, on_delete=models.CASCADE, null = True)
 
 
b'\\ No newline at end of file'