Re: Printing model fields organized by category

2018-08-27 Thread Jay
t.all > > > > model_set is the manager. You need to treat it like any other manager. > > > > *From:* django...@googlegroups.com [mailto: > django...@googlegroups.com ] *On Behalf Of *Jay > *Sent:* Monday, August 27, 2018 11:05 AM > *To:* Django users > *Sub

Re: Printing model fields organized by category

2018-08-27 Thread Jay
ike any other manager. > > > > *From:* django...@googlegroups.com [mailto: > django...@googlegroups.com ] *On Behalf Of *Jay > *Sent:* Monday, August 27, 2018 11:05 AM > *To:* Django users > *Subject:* Re: Printing model fields organized by category > > > &

RE: Printing model fields organized by category

2018-08-27 Thread Matthew Pava
: Django users Subject: Re: Printing model fields organized by category Thanks Matthew, here is my views.py file: from django.shortcuts import render #generates HTML fiels using a template and data #from django.http import HttpResponse from .models import Book, Author, BookInstance, Genre, Model

Re: Printing model fields organized by category

2018-08-27 Thread Jay
filter(status__exact='o').order_by('due_back') On Monday, August 27, 2018 at 11:00:57 AM UTC-4, Matthew Pava wrote: > > We need to see your view code. I’m assuming now that you don’t have > category_list in your context variable that you submitted to the template. > >

RE: Printing model fields organized by category

2018-08-27 Thread Matthew Pava
Subject: Re: Printing model fields organized by category Thanks for the suggestions, I will change the name from Model after I can get this working. So, I've changed the code using your help to: {% if category_list %} {% for category in category_list %} {{ cat

Re: Printing model fields organized by category

2018-08-27 Thread Jay
; *From:* django...@googlegroups.com [mailto: > django...@googlegroups.com ] *On Behalf Of *Jay > *Sent:* Monday, August 27, 2018 8:02 AM > *To:* Django users > *Subject:* Printing model fields organized by category > > > > I have a Class called "Model" that has a