from django.db import models
from tour.models import Place

# Create your models here.
class Volenteer(models.Model):
    volunteer_id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=250)
    email = models.EmailField()
    phone = models.IntegerField()
    area = models.ForeignKey(Place, on_delete=models.CASCADE)
    img = models.ImageField(upload_to = 'volunteers', default = '')

    def __str__(self):
        return self.name


7a8dd256068cdcc1ec349bb0a73a5ccb8ce50c57
<mask token>


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

<mask token>


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

    def __str__(self):
        return self.name

<mask token>


class Volenteer(models.Model):
    volunteer_id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=250)
    email = models.EmailField()
    phone = models.IntegerField()
    area = models.ForeignKey(Place, on_delete=models.CASCADE)
    img = models.ImageField(upload_to='volunteers', default='')

    def __str__(self):
        return self.name

from django.db import models
from tour.models import Place


class Volenteer(models.Model):
    volunteer_id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=250)
    email = models.EmailField()
    phone = models.IntegerField()
    area = models.ForeignKey(Place, on_delete=models.CASCADE)
    img = models.ImageField(upload_to='volunteers', default='')

    def __str__(self):
        return self.name

from django.db import models
from tour.models import Place

# Create your models here.
class Volenteer(models.Model):
    volunteer_id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=250)
    email = models.EmailField()
    phone = models.IntegerField()
    area = models.ForeignKey(Place, on_delete=models.CASCADE)
    img = models.ImageField(upload_to = 'volunteers', default = '')

    def __str__(self):
        return self.name

