Commits

Scott Nixon committed 41f7143

Updated to fix bugs in admin and views. Added selling to courses

  • Participants
  • Parent commits 1057744

Comments (0)

Files changed (3)

 	list_filter = ['createdate']
 	date_hierarchy = 'createdate'
 	search_fields = ['title']
-        inlines = [ MediaInline,]
+        inlines = [MediaInline]
         
 class MediaAdmin(admin.ModelAdmin):		
 	fields = ['lesson', 'title', 'media', 'type']
 
 admin.site.register(Courses, CoursesAdmin)
 admin.site.register(Lessons, LessonsAdmin)
-#admin.site.register(Media, MediaAdmin)
+admin.site.register(Media, MediaAdmin)
         
 class Courses(models.Model):
     title = models.CharField(max_length=100,unique=True)
     summary = models.TextField()
+    selling = models.TextField()
     slug = AutoSlugField(populate_from='title', always_update=True, verbose_name='Course URL', max_length=50,unique=True)
     discussion = models.URLField()
     createdate = models.DateTimeField(auto_now_add=True,null=True)
 from django.shortcuts import render_to_response
+from django.contrib.sites.models import Site
+from django.template import RequestContext
 from models import Courses, Lessons
 from managers import ActiveCourses, ActiveLessons