diff options
author | Magnus Hagander | 2009-09-14 12:39:25 +0000 |
---|---|---|
committer | Magnus Hagander | 2009-09-14 12:39:25 +0000 |
commit | 90b758c247ad4f630f1775c6154daaef62284f52 (patch) | |
tree | 800d94792715e6b57d14cc7da618a771abb036e9 /pgweb/profserv/models.py |
A first very basic import.
Contains basic functionality, and an import of most of the static content
from the old site.
There is still plenty more to do...
Diffstat (limited to 'pgweb/profserv/models.py')
-rw-r--r-- | pgweb/profserv/models.py | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pgweb/profserv/models.py b/pgweb/profserv/models.py new file mode 100644 index 00000000..543c0054 --- /dev/null +++ b/pgweb/profserv/models.py @@ -0,0 +1,38 @@ +from django.db import models +from django.contrib.auth.models import User + +from pgweb.util.bases import PgModel + +class ProfessionalService(models.Model): + submitter = models.ForeignKey(User, null=False, blank=False) + approved = models.BooleanField(null=False, blank=False, default=False) + + name = models.CharField(max_length=100, null=False, blank=False) + description = models.TextField(null=False,blank=False) + employees = models.CharField(max_length=32, null=True, blank=True) + locations = models.CharField(max_length=128, null=True, blank=True) + region_africa = models.BooleanField(null=False, default=False) + region_asia = models.BooleanField(null=False, default=False) + region_europe = models.BooleanField(null=False, default=False) + region_northamerica = models.BooleanField(null=False, default=False) + region_oceania = models.BooleanField(null=False, default=False) + region_southamerica = models.BooleanField(null=False, default=False) + hours = models.CharField(max_length=128, null=True, blank=True) + languages = models.CharField(max_length=128, null=True, blank=True) + customerexample = models.TextField(blank=True, null=True) + experience = models.TextField(blank=True, null=True) + contact = models.CharField(max_length=128, null=True, blank=True) + url = models.URLField(max_length=128, null=True, blank=True) + provides_support = models.BooleanField(null=False, default=False) + provides_hosting = models.BooleanField(null=False, default=False) + interfaces = models.CharField(max_length=128, null=True, blank=True) + + + send_notification = True + + def __unicode__(self): + return self.name + + class Meta: + ordering = ('name',) + |