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

@ -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