Changeset - 76c4a7b79c5d
[Not reviewed]
0 2 0
Luke Hatcher - 12 years ago 2012-07-12 04:38:01
lukeman@gmail.com
update conferences app
2 files changed with 8 insertions and 3 deletions:
0 comments (0 inline, 0 general)
symposion/conference/admin.py
Show inline comments
...
 
@@ -6,2 +6,6 @@ from symposion.conference.models import Conference, Section
 
admin.site.register(Conference, list_display=("title", "start_date", "end_date"))
 
admin.site.register(Section, list_display=("name", "conference", "start_date", "end_date"))
 
admin.site.register(
 
    Section,
 
    prepopulated_fields = {"slug": ("name",)},
 
    list_display = ("name", "conference", "start_date", "end_date")
 
)
symposion/conference/models.py
Show inline comments
...
 
@@ -54,3 +54,4 @@ class Section(models.Model):
 
    name = models.CharField(_("name"), max_length=100)
 
    
 
    slug = models.SlugField()
 

	
 
    # when the section runs
...
 
@@ -60,3 +61,3 @@ class Section(models.Model):
 
    def __unicode__(self):
 
        return self.name
 
        return "%s %s" % (self.conference, self.name)
 
    
0 comments (0 inline, 0 general)