mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 12:27:05 +00:00
[svn] * Adding JS fill in next QM number via ajax.
* Slight models cleanup- get rid of TroggleImageModel class, use mixin instead. * Collect various troggle shared functions into utils.py
This commit is contained in:
@@ -31,7 +31,10 @@ class SurvexBlock(models.Model):
|
||||
ordering = ('date', 'survexpath')
|
||||
|
||||
def __unicode__(self):
|
||||
return unicode(self.name)
|
||||
if self.name:
|
||||
return unicode(self.name)
|
||||
else:
|
||||
return 'no name'
|
||||
|
||||
def filecontents(self):
|
||||
f = os.path.join(settings.SURVEX_DATA, self.begin_file)
|
||||
|
||||
Reference in New Issue
Block a user