from django.db import models


# Create your models here.
class ModelParent(models.Model):
    name = models.CharField(max_length=10)

    def __str__(self):
        return self.name


class Alphabet(models.Model):
    name = models.CharField(max_length=1)

    def __str__(self):
        return self.name


class ModelInline(models.Model):
    parent = models.ForeignKey(ModelParent, on_delete=models.CASCADE, related_name="inline_parent")
    text = models.ManyToManyField(Alphabet)

    def __str__(self):
        return self.text

afb3f362bbad2e0e50811685e113c6d620fda8d3
<mask token>


class Alphabet(models.Model):
    name = models.CharField(max_length=1)

    def __str__(self):
        return self.name


class ModelInline(models.Model):
    parent = models.ForeignKey(ModelParent, on_delete=models.CASCADE,
        related_name='inline_parent')
    text = models.ManyToManyField(Alphabet)

    def __str__(self):
        return self.text

<mask token>


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


class Alphabet(models.Model):
    name = models.CharField(max_length=1)

    def __str__(self):
        return self.name


class ModelInline(models.Model):
    parent = models.ForeignKey(ModelParent, on_delete=models.CASCADE,
        related_name='inline_parent')
    text = models.ManyToManyField(Alphabet)

    def __str__(self):
        return self.text

<mask token>


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

    def __str__(self):
        return self.name


class Alphabet(models.Model):
    name = models.CharField(max_length=1)

    def __str__(self):
        return self.name


class ModelInline(models.Model):
    parent = models.ForeignKey(ModelParent, on_delete=models.CASCADE,
        related_name='inline_parent')
    text = models.ManyToManyField(Alphabet)

    def __str__(self):
        return self.text

from django.db import models


class ModelParent(models.Model):
    name = models.CharField(max_length=10)

    def __str__(self):
        return self.name


class Alphabet(models.Model):
    name = models.CharField(max_length=1)

    def __str__(self):
        return self.name


class ModelInline(models.Model):
    parent = models.ForeignKey(ModelParent, on_delete=models.CASCADE,
        related_name='inline_parent')
    text = models.ManyToManyField(Alphabet)

    def __str__(self):
        return self.text

from django.db import models


# Create your models here.
class ModelParent(models.Model):
    name = models.CharField(max_length=10)

    def __str__(self):
        return self.name


class Alphabet(models.Model):
    name = models.CharField(max_length=1)

    def __str__(self):
        return self.name


class ModelInline(models.Model):
    parent = models.ForeignKey(ModelParent, on_delete=models.CASCADE, related_name="inline_parent")
    text = models.ManyToManyField(Alphabet)

    def __str__(self):
        return self.text
