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

class Need(models.Model):
    name = models.CharField(max_length=30)
    description = models.CharField(max_length=30)
    def __unicode__(self):              # __unicode__ on Python 2
        return self.name

class Category(models.Model):
    name = models.CharField(max_length=30)
    description = models.CharField(max_length=30)
    def __unicode__(self):
        return self.name

class Activity(models.Model):
    act_holder = models.ForeignKey(User)
    name = models.CharField(max_length=30)
    place = models.CharField(max_length=30)
    datetime = models.DateTimeField('activity date')
    description = models.CharField(max_length=100)
    need = models.ManyToManyField(Need)
    category = models.ForeignKey(Category)
    def __unicode__(self):              # __unicode__ on Python 2
        return self.name

class Schedule(models.Model):
    name = models.CharField(max_length=30)
    description = models.CharField(max_length=30)
    datetime = models.DateTimeField('schedule date')
    activity = models.ForeignKey(Activity)
    def __unicode__(self):
        return self.name

c3e4c9ca11eec1b7f1a8fc75709b4afc58956b09
<mask token>


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


class Activity(models.Model):
    act_holder = models.ForeignKey(User)
    name = models.CharField(max_length=30)
    place = models.CharField(max_length=30)
    datetime = models.DateTimeField('activity date')
    description = models.CharField(max_length=100)
    need = models.ManyToManyField(Need)
    category = models.ForeignKey(Category)

    def __unicode__(self):
        return self.name


class Schedule(models.Model):
    name = models.CharField(max_length=30)
    description = models.CharField(max_length=30)
    datetime = models.DateTimeField('schedule date')
    activity = models.ForeignKey(Activity)

    def __unicode__(self):
        return self.name

<mask token>


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


class Category(models.Model):
    name = models.CharField(max_length=30)
    description = models.CharField(max_length=30)

    def __unicode__(self):
        return self.name


class Activity(models.Model):
    act_holder = models.ForeignKey(User)
    name = models.CharField(max_length=30)
    place = models.CharField(max_length=30)
    datetime = models.DateTimeField('activity date')
    description = models.CharField(max_length=100)
    need = models.ManyToManyField(Need)
    category = models.ForeignKey(Category)

    def __unicode__(self):
        return self.name


class Schedule(models.Model):
    name = models.CharField(max_length=30)
    description = models.CharField(max_length=30)
    datetime = models.DateTimeField('schedule date')
    activity = models.ForeignKey(Activity)

    def __unicode__(self):
        return self.name

<mask token>


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

    def __unicode__(self):
        return self.name


class Category(models.Model):
    name = models.CharField(max_length=30)
    description = models.CharField(max_length=30)

    def __unicode__(self):
        return self.name


class Activity(models.Model):
    act_holder = models.ForeignKey(User)
    name = models.CharField(max_length=30)
    place = models.CharField(max_length=30)
    datetime = models.DateTimeField('activity date')
    description = models.CharField(max_length=100)
    need = models.ManyToManyField(Need)
    category = models.ForeignKey(Category)

    def __unicode__(self):
        return self.name


class Schedule(models.Model):
    name = models.CharField(max_length=30)
    description = models.CharField(max_length=30)
    datetime = models.DateTimeField('schedule date')
    activity = models.ForeignKey(Activity)

    def __unicode__(self):
        return self.name

<mask token>


class Need(models.Model):
    name = models.CharField(max_length=30)
    description = models.CharField(max_length=30)

    def __unicode__(self):
        return self.name


class Category(models.Model):
    name = models.CharField(max_length=30)
    description = models.CharField(max_length=30)

    def __unicode__(self):
        return self.name


class Activity(models.Model):
    act_holder = models.ForeignKey(User)
    name = models.CharField(max_length=30)
    place = models.CharField(max_length=30)
    datetime = models.DateTimeField('activity date')
    description = models.CharField(max_length=100)
    need = models.ManyToManyField(Need)
    category = models.ForeignKey(Category)

    def __unicode__(self):
        return self.name


class Schedule(models.Model):
    name = models.CharField(max_length=30)
    description = models.CharField(max_length=30)
    datetime = models.DateTimeField('schedule date')
    activity = models.ForeignKey(Activity)

    def __unicode__(self):
        return self.name

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

class Need(models.Model):
    name = models.CharField(max_length=30)
    description = models.CharField(max_length=30)
    def __unicode__(self):              # __unicode__ on Python 2
        return self.name

class Category(models.Model):
    name = models.CharField(max_length=30)
    description = models.CharField(max_length=30)
    def __unicode__(self):
        return self.name

class Activity(models.Model):
    act_holder = models.ForeignKey(User)
    name = models.CharField(max_length=30)
    place = models.CharField(max_length=30)
    datetime = models.DateTimeField('activity date')
    description = models.CharField(max_length=100)
    need = models.ManyToManyField(Need)
    category = models.ForeignKey(Category)
    def __unicode__(self):              # __unicode__ on Python 2
        return self.name

class Schedule(models.Model):
    name = models.CharField(max_length=30)
    description = models.CharField(max_length=30)
    datetime = models.DateTimeField('schedule date')
    activity = models.ForeignKey(Activity)
    def __unicode__(self):
        return self.name
