I'm working my way through the Django Book and creating a simple books
app inside the tutorial project.  I have the following class:

class Book(models.Model):
    ...
    def get_authors(self):
        return self.authors.all()


And I am using that get_authors() method to find all authors for a
particular book.  All of that works fine... but in all my searching, I
haven't been able to find a clue as to how to use something like
verbose_name to set the column name of this get_authors method.

For example, I have a table that lists all of the Book(s) in the
database.  So naturally I have a table with labels at the top of each
table column:

Title  /  Get authors  /  Publisher


But I would like the table columns to look something like this:

Title  /  Authors  /  Publisher


But verbose_name='authors' doesn't seem to work in this case.  Is
there something I'm missing?

Thanks for any pointers.
Andy

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to