Bugfixes courtesy of Paul Boehm:

* list_display_links in admin.py changed to list
* Followup view threw errors with attachments. Fixed.
This commit is contained in:
Ross Poulton 2008-10-28 10:24:59 +00:00
parent 6e79f73e04
commit 115b2fbc7c
2 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class FollowUpAdmin(admin.ModelAdmin):
class KBItemAdmin(admin.ModelAdmin):
list_display = ('category', 'title', 'last_updated',)
list_display_links = ('title')
list_display_links = ('title',)
admin.site.register(Ticket, TicketAdmin)
admin.site.register(Queue, QueueAdmin)

View File

@ -592,6 +592,8 @@ class Attachment(models.Model):
def get_upload_to(self, field_attname):
""" Get upload_to path specific to this item """
if not self.id:
return u''
return u'helpdesk/attachments/%s/%s' % (
self.followup.ticket.ticket_for_url,
self.followup.id