I'm not too sure what I was doing with awfully implemented exception handling in helpsys models.py. Yank that nasty stuff.
This commit is contained in:
parent
0169c52442
commit
5d7fcb67dd
1 changed files with 2 additions and 8 deletions
|
|
@ -27,19 +27,13 @@ class HelpEntry(models.Model):
|
||||||
"""
|
"""
|
||||||
Returns the topic's name.
|
Returns the topic's name.
|
||||||
"""
|
"""
|
||||||
try:
|
return self.topicname
|
||||||
return self.topicname
|
|
||||||
except:
|
|
||||||
return None
|
|
||||||
|
|
||||||
def get_entrytext_ingame(self):
|
def get_entrytext_ingame(self):
|
||||||
"""
|
"""
|
||||||
Gets the entry text for in-game viewing.
|
Gets the entry text for in-game viewing.
|
||||||
"""
|
"""
|
||||||
try:
|
return ansi.parse_ansi(self.entrytext)
|
||||||
return ansi.parse_ansi(self.entrytext)
|
|
||||||
except:
|
|
||||||
return None
|
|
||||||
|
|
||||||
class HelpEntryAdmin(admin.ModelAdmin):
|
class HelpEntryAdmin(admin.ModelAdmin):
|
||||||
list_display = ('id', 'topicname', 'staff_only')
|
list_display = ('id', 'topicname', 'staff_only')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue