from django.db import models

# Create your models here.

@@ -27,31 +27,602 @@
 ls%0A%0A
-# Create your models here.
+class Gear(models.Model):%0A%09name = models.CharField(max_length=64)%0A%09purchase_date = models.DateTimeField('date purchased')%0A%0Aclass Camera(Gear):%0A%09chip_size = models.IntegerField()%0A%0Aclass Telescope(Gear):%0A%09focal_length = models.IntegerField()%0A%09aperture = models.IntegerField()%0A%0Aclass Mount(Gear):%0A%0Aclass FocalReduced(Gear):%0A%09ratio = models.DoubleField()%0A%0Aclass Subject(models.Model):%0A%09name = model.CharField(max_length=64)%0A%0A%09# gear%0A%09camera = models.ForeignKey(Camera)%0A%09focal_reducer = models.ForegnKey(FocalReducer)%0A%09telescope = models.ForeignKey(Telescope)%0A%09mount = models.ForeignKey(Mount)%0A%0A%09# data
 %0A

Add models.