Re: ResultSet with query on multiple models

2019-08-24 Thread Catalina Popescu
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

Re: Hello, everybody! I've tried using FormMixin with DetailView and I get error 405 on post method. Can anybody help me? Thanks a lot.

2019-08-23 Thread Catalina Popescu
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

Re: Hello, everybody! I've tried using FormMixin with DetailView and I get error 405 on post method. Can anybody help me? Thanks a lot.

2019-08-22 Thread Catalina Popescu
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

Hello, everybody! I've tried using FormMixin with DetailView and I get error 405 on post method. Can anybody help me? Thanks a lot.

2019-08-22 Thread Catalina Popescu
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