All pastes #424071 Raw Edit

Someone

public text v1 · immutable
·published 2007-04-04 15:40 UTC
rendered paste body
Index: models.py
===================================================================
--- models.py	(revision 5)
+++ models.py	(working copy)
@@ -1,30 +1,25 @@
 # This file is a part of Conspire
-# Time-stamp: "2007-04-04 20:34:03 ghoseb"
+# Time-stamp: "04-Apr-2007 21:07:47 prash"
 
 from django.db import models
 from django.contrib.auth.models import User
 
 class Category(models.Model):
     name = models.CharField (maxlength=50)
-
+    description = models.CharField (maxlength=200)
     class Admin: pass
 
     class Meta:
         verbose_name_plural = "Categories"
         
-class Track(models.Model):
-    name = models.CharField (maxlength=50)
-
-    class Admin: pass
-    
 class Talk(models.Model):
     LEVELS = (('BEG','Beginner'),
               ('INT','Intermediate'),
               ('ADV','Advanced'))
     
     talk_name = models.CharField (maxlength=255)
-    presentation_file = models.FileField (upload_to =
-                                          '/home/ghoseb/src/conspire/talks')
+    abstract = models.CharField (maxlength=1000)
+    presentation_file = models.FileField (upload_to = 'talks')
     talk_status = models.BooleanField() # True if selected
     category = models.ForeignKey (Category, verbose_name="Talk Category")
     equipment = models.BooleanField()
@@ -52,7 +47,8 @@
     travel_info = models.TextField()
     travel_assistance = models.BooleanField()
     personal_url = models.URLField()
-    
+    tracks_of_interest = models.ManyToManyField(Category)
+    comments = models.TextField (maxlength=500)
     def __str__(self):
         return self.user.get_full_name()
 
@@ -62,6 +58,7 @@
     user = models.ForeignKey (UserProfile)
     registered_talks = models.ManyToManyField (Talk)
     photograph = models.ImageField (blank=True,
-                                    upload_to='/home/ghoseb/src/conspire/pics')
-    
+                                    upload_to='pics')
+    accomodation = models.BooleanField(default=False)
+    travel_assistance = models.BooleanField(default=False)
     class Admin: pass