from django.db import models
from Carrera.models import Carrera

# Create your models here.

class Area(models.Model):
	carrera = models.ManyToManyField(Carrera,blank=True,through= 'Areas_carreras', related_name='Areas_carreras')
	nombre = models.CharField(max_length=100,null=False,blank=False)

	def __str__(self):
		return self.nombre

class Areas_carreras(models.Model):
	carrera = models.ForeignKey(Carrera,blank=True,null=True,on_delete=models.CASCADE)
	area = models.ForeignKey(Area,blank=True,null=True,on_delete=models.CASCADE)

	def __str__(self):
		return self.area.nombre + ' - ' + self.carrera.nombre  
22b72f5b0234ec67e05c79473587f4423305f10c
<mask token>


class Areas_carreras(models.Model):
    carrera = models.ForeignKey(Carrera, blank=True, null=True, on_delete=
        models.CASCADE)
    area = models.ForeignKey(Area, blank=True, null=True, on_delete=models.
        CASCADE)

    def __str__(self):
        return self.area.nombre + ' - ' + self.carrera.nombre

<mask token>


class Area(models.Model):
    <mask token>
    <mask token>

    def __str__(self):
        return self.nombre


class Areas_carreras(models.Model):
    carrera = models.ForeignKey(Carrera, blank=True, null=True, on_delete=
        models.CASCADE)
    area = models.ForeignKey(Area, blank=True, null=True, on_delete=models.
        CASCADE)

    def __str__(self):
        return self.area.nombre + ' - ' + self.carrera.nombre

<mask token>


class Area(models.Model):
    carrera = models.ManyToManyField(Carrera, blank=True, through=
        'Areas_carreras', related_name='Areas_carreras')
    nombre = models.CharField(max_length=100, null=False, blank=False)

    def __str__(self):
        return self.nombre


class Areas_carreras(models.Model):
    carrera = models.ForeignKey(Carrera, blank=True, null=True, on_delete=
        models.CASCADE)
    area = models.ForeignKey(Area, blank=True, null=True, on_delete=models.
        CASCADE)

    def __str__(self):
        return self.area.nombre + ' - ' + self.carrera.nombre

from django.db import models
from Carrera.models import Carrera


class Area(models.Model):
    carrera = models.ManyToManyField(Carrera, blank=True, through=
        'Areas_carreras', related_name='Areas_carreras')
    nombre = models.CharField(max_length=100, null=False, blank=False)

    def __str__(self):
        return self.nombre


class Areas_carreras(models.Model):
    carrera = models.ForeignKey(Carrera, blank=True, null=True, on_delete=
        models.CASCADE)
    area = models.ForeignKey(Area, blank=True, null=True, on_delete=models.
        CASCADE)

    def __str__(self):
        return self.area.nombre + ' - ' + self.carrera.nombre

from django.db import models
from Carrera.models import Carrera

# Create your models here.

class Area(models.Model):
	carrera = models.ManyToManyField(Carrera,blank=True,through= 'Areas_carreras', related_name='Areas_carreras')
	nombre = models.CharField(max_length=100,null=False,blank=False)

	def __str__(self):
		return self.nombre

class Areas_carreras(models.Model):
	carrera = models.ForeignKey(Carrera,blank=True,null=True,on_delete=models.CASCADE)
	area = models.ForeignKey(Area,blank=True,null=True,on_delete=models.CASCADE)

	def __str__(self):
		return self.area.nombre + ' - ' + self.carrera.nombre  