-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathmodels.py
40 lines (29 loc) · 1.34 KB
/
models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
class chatSession(models.Model):
title = models.CharField(max_length=128, help_text="Session title")
profile_name = models.CharField(max_length=128,
help_text="The person's name")
profile_url = models.URLField(help_text="The Url of the person's website")
description = models.TextField(max_length=512, help_text="Session details")
start_date = models.DateTimeField()
end_date = models.DateTimeField()
register_url = models.URLField(help_text="URL for the event registration")
def __str__(self):
return self.title
class Contest(models.Model):
name = models.CharField(max_length=128, help_text="Contest name")
link = models.URLField(help_text="URL of the contest's website")
description = models.TextField(max_length=512,
help_text="Contest details", null=True)
start_date = models.DateField(null=True)
end_date = models.DateField(null=True)
approved = models.BooleanField(default=False)
def __str__(self):
return self.name
class Journey(models.Model):
title = models.CharField(max_length=128, help_text="Journey title")
start_date = models.DateField(null=True)
def __str__(self):
return self.title