Hey, Benoit
You could set up a filter on your admin.py file. Like writing:
class Immunization(admin.ModelAdmin):
list_filter = ('vaccine', 'recorded')
On Friday, August 23, 2019 at 2:19:35 PM UTC+3, Benoit Dupont wrote:
>
> Hello,
>
> I've played a lot of time with Django and it's a great to
0/ HTTP/1.1" 405.0
>>
>>
>> On Friday, August 23, 2019 at 12:28:27 AM UTC+3, James Schneider wrote:
>>
>>> Post the full error message and/or traceback reported by the server when
>>> the error occurs.
>>>
>>> -James
>>&g
essage and/or traceback reported by the server when
> the error occurs.
>
> -James
>
> On Thu, Aug 22, 2019, 12:31 PM Catalina Popescu > wrote:
>
>> views.py
>>
>> class BookDisplay(DetailView):
>> model = Book
>> template_name = 'books
views.py
class BookDisplay(DetailView):
model = Book
template_name = 'books/book_detail.html'
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['form'] = WishBookForm()
return context
class WishBook(SingleObjectMixi
4 matches
Mail list logo