Mercurial > public > sg101
changeset 206:272d3a8c98e8
Some minor tweaks made while rebuilding the development database after Ubuntu 10.04 install.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 03 May 2010 02:49:31 +0000 (2010-05-03) |
parents | da46e77cd804 |
children | 8bbefaa3e408 |
files | gpp/bio/forms.py gpp/downloads/models.py gpp/forums/admin.py gpp/messages/models.py gpp/settings.py |
diffstat | 5 files changed, 16 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gpp/bio/forms.py Sat May 01 22:25:49 2010 +0000 +++ b/gpp/bio/forms.py Mon May 03 02:49:31 2010 +0000 @@ -40,7 +40,9 @@ class Meta: model = UserProfile - exclude = ('user', 'avatar', 'profile_html', 'signature_html', 'forum_post_count') + fields = ('location', 'birthday', 'occupation', 'interests', + 'profile_text', 'hide_email', 'signature', 'time_zone', + 'use_24_time', ) class Media: css = {
--- a/gpp/downloads/models.py Sat May 01 22:25:49 2010 +0000 +++ b/gpp/downloads/models.py Mon May 03 02:49:31 2010 +0000 @@ -119,7 +119,7 @@ class AllowedExtension(models.Model): """Model to represent the list of allowed file extensions.""" - extension = models.CharField(max_length=8) + extension = models.CharField(max_length=8, help_text="e.g. .txt") objects = AllowedExtensionManager()
--- a/gpp/forums/admin.py Sat May 01 22:25:49 2010 +0000 +++ b/gpp/forums/admin.py Mon May 03 02:49:31 2010 +0000 @@ -14,14 +14,17 @@ class CategoryAdmin(admin.ModelAdmin): list_display = ('name', 'position', ) + list_editable = ('position', ) prepopulated_fields = { 'slug': ('name', ) } save_on_top = True class ForumAdmin(admin.ModelAdmin): list_display = ('name', 'category', 'position', 'topic_count', 'post_count') + list_editable = ('position', ) prepopulated_fields = { 'slug': ('name', ) } raw_id_fields = ('last_post', ) + ordering = ('category', ) save_on_top = True
--- a/gpp/messages/models.py Sat May 01 22:25:49 2010 +0000 +++ b/gpp/messages/models.py Mon May 03 02:49:31 2010 +0000 @@ -101,5 +101,7 @@ def __unicode__(self): return self.user.username + class Meta: + verbose_name_plural = "Options" -# vim: ts=4 sw=4 +
--- a/gpp/settings.py Sat May 01 22:25:49 2010 +0000 +++ b/gpp/settings.py Mon May 03 02:49:31 2010 +0000 @@ -238,6 +238,12 @@ format='%(asctime)s %(levelname)s %(message)s', level=local_settings.LOG_LEVEL) +####################################################################### +# Django Debug Toolbar +####################################################################### + +if DEBUG: + DEBUG_TOOLBAR_CONFIG = local_settings.DEBUG_TOOLBAR_CONFIG ####################################################################### # URL's of 3rd party Javascript and CSS files.