+ Reply to Thread
Results 1 to 2 of 2

Thread: get specific row value

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    34

    get specific row value

    Is there a way that i could get all of the items for a certain part of that database?
    say I have a database of books and under that I have the author and illustrator fields that you can enter. what would I enter so that it returned a list of all the authors?

  2. #2
    Junior Member
    Join Date
    Feb 2012
    Posts
    19
    You can try a query like :
    Code:
    Books.objects.values('author').distinct()

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts