~ubuntu-us-ma/us-ma-loco-site/trunk

« back to all changes in this revision

Viewing changes to UbuntuMaWebsite/static/models.py

  • Committer: Martin Owens
  • Date: 2008-06-09 13:52:43 UTC
  • Revision ID: doctormo@delen-20080609135243-wclff7592e5pu08g
Start of website commiting

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.db import models
 
2
 
 
3
class Town(models.Model):
 
4
        name = models.CharField(max_length=255)
 
5
        long = models.FloatField()
 
6
        latt = models.FloatField()
 
7
 
 
8
        def __unicode__(self):
 
9
                return self.name
 
10
 
 
11
        class Admin:
 
12
                pass
 
13
 
 
14
 
 
15
class ProgrammingLevel(models.Model):
 
16
        name  = models.CharField(max_length=255)
 
17
        level = models.PositiveIntegerField()
 
18
 
 
19
        def __unicode__(self):
 
20
                return self.name
 
21
 
 
22
        class Admin:
 
23
                pass
 
24
 
 
25
class UserLevel(models.Model):
 
26
        name  = models.CharField(max_length=255)
 
27
        level = models.PositiveIntegerField()
 
28
 
 
29
        def __unicode__(self):
 
30
                return self.name
 
31
 
 
32
        class Admin:
 
33
                pass