Source

hokiefinder / geolocator / models.py

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

class Person(models.Model):
	pid = models.CharField(max_length = 50, primary_key = True)
	display_name = models.CharField(max_length = 30)
	address = models.CharField(max_length = 120)
	phone_number = models.PositiveIntegerField(null = True)
	major = models.CharField(max_length = 30, null = True)
	longitude = models.FloatField()
	latitude = models.FloatField()

	def __unicode__(self):
		return self.display_name

	class Meta:
		verbose_name = 'person'
		verbose_name_plural = 'people'
		db_table = 'geolocator_people'

class UserProfile(models.Model):
	friends = models.ManyToManyField(Person)
	user = models.OneToOneField(User)