from django.contrib.auth.models import User
from django.db import models

from service_and_process.models import MasterProcess


class MasterSection(models.Model):
    CHOICES = ((1, 'Laundry'),
               (2, 'Kitchen'))
    label = models.IntegerField(choices=CHOICES)

    def __str__(self):
        return "{}. {}".format(self.id, self.get_label_display())


class InternalUser(models.Model):
    user = models.OneToOneField(User)
    parent = models.ForeignKey('self')
    section = models.ForeignKey(MasterSection)
    # present_trainer = models.ManyToManyField('self', through='production_system.MappingTrainerTraineeTask')


class Customer(models.Model):
    name = models.TextField()
    address = models.TextField()
    phone_number = models.IntegerField()
    email_id = models.EmailField()



@@ -71,207 +71,73 @@
 ls%0A%0A
-from service_and_process.models import MasterProcess%0A%0A%0Aclass MasterSection(models.Model):%0A    CHOICES = ((1, 'Laundry'),%0A               (2, 'Kitchen'))%0A    label = models.IntegerField(choices=CHOICES
+%0Aclass MasterSection(models.Model):%0A    label = models.TextField(
 )%0A%0A 
@@ -207,27 +207,13 @@
 elf.
-get_
 label
-_display()
 )%0A%0A%0A

remove choices