Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
better name for photos
Browse files Browse the repository at this point in the history
  • Loading branch information
thraxil committed Apr 11, 2010
1 parent e62f5b2 commit 5becc4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/photo/models.py
Expand Up @@ -50,6 +50,9 @@ def get_absolute_url(self):
def type_display(self):
return "Photo"

def name(self):
return "Photo of " + self.content_object.name


class PhotoInline(generic.GenericTabularInline):
model = Photo
Expand Down

0 comments on commit 5becc4d

Please sign in to comment.