Mercurial > public > sg101
comparison gpp/downloads/models.py @ 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 |
parents | b4305e18d3af |
children | 77b606e0ad5f |
comparison
equal
deleted
inserted
replaced
205:da46e77cd804 | 206:272d3a8c98e8 |
---|---|
117 return self.values_list('extension', flat=True) | 117 return self.values_list('extension', flat=True) |
118 | 118 |
119 | 119 |
120 class AllowedExtension(models.Model): | 120 class AllowedExtension(models.Model): |
121 """Model to represent the list of allowed file extensions.""" | 121 """Model to represent the list of allowed file extensions.""" |
122 extension = models.CharField(max_length=8) | 122 extension = models.CharField(max_length=8, help_text="e.g. .txt") |
123 | 123 |
124 objects = AllowedExtensionManager() | 124 objects = AllowedExtensionManager() |
125 | 125 |
126 def __unicode__(self): | 126 def __unicode__(self): |
127 return self.extension | 127 return self.extension |