Re: Multiple Templates in single list view

2021-11-24 Thread Lalit Suthar
I have gone through your views and template. They are looking fine to me.
Are you getting any error?

On Wed, 24 Nov 2021 at 23:02, Lalit Suthar  wrote:

> > Anyone plz review my code i am struggling to figure out what the issue
> here is
>
> What is the issue you are trying to resolve right now?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGp2JVHOnmK%3DvUZjWrT0vjYZi-sfpUWdAxkVDCp6A8uG_foAZg%40mail.gmail.com.


Re: Multiple Templates in single list view

2021-11-24 Thread Lalit Suthar
> Anyone plz review my code i am struggling to figure out what the issue
here is

What is the issue you are trying to resolve right now?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGp2JVGfs5rLeSZb_OUfaeByYH7xV77PBzNFmC805m_xuqyT%2BA%40mail.gmail.com.


Re: Multiple Templates in single list view

2021-11-22 Thread Trippy Samurai
Its done bro model is configured already i didn't just posted the models.py 
file

On Monday, 22 November 2021 at 21:18:12 UTC+5:30 ram.asf...@gmail.com wrote:

> will update asap
>
> On Mon, Nov 22, 2021 at 1:22 PM David Nugent  wrote:
>
>> Well, there are several ways you can deal with that.
>>
>> Probably easiest is to override get_template() and switch the template 
>> based on whatever type of ticket you're managing or you can change the 
>> value of self.template_name based on the request.
>>
>> Or maybe you prefer a single template to deal with all cases with 
>> conditional blocks where appropriate.
>>
>>
>> Regards,
>> David
>>
>> -- 
>>
> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAE5VhgUCCnmkm%2BBe0EWLK4Nb%3DXUOHZAEYGax%2B2%2B-kCysYxdzHA%40mail.gmail.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8a2eadcf-5733-439b-b763-4eb70db91429n%40googlegroups.com.


Re: Multiple Templates in single list view

2021-11-22 Thread ram s
i think u forgot to configure model, please once configure and complete
check first

On Mon, Nov 22, 2021 at 4:36 PM Trippy Samurai 
wrote:

> Thanks David for the idea i appreciate it i have gone with last way of
> doing things but it doesnt render anything on data
>
> Pls correct my code below
>
>
>
> *views.py:*
>
> class DeveloperTicketView(TemplateView):
> template_name = 'app/ticket_view.html'
> ticket = Ticket.objects.all()
> extra_content = {'ticket_type':ticket}
>
> def get_context_data(self, **kwargs):
> context = super().get_context_data(**kwargs)
> context['open_tickets'] = Ticket.objects.filter(status = 'Opened')
> context['accepted_tickets'] = Ticket.objects.filter(status =
> 'Accepted',accepted_by = self.request.user)
> context['completed_tickets'] = Ticket.objects.filter(status =
> 'Completed',accepted_by = self.request.user)
> context['closed_tickets'] = Ticket.objects.filter(status =
> 'Closed',accepted_by = self.request.user)
> return context
>
>
>
> ticket_view.html
>
> {% extends 'app/base.html' %}
>
> {% block body %}
> {% for tickets in ticket_type%}
> {% if tickets.status == "Opened" %}
> 
> 
> 
> ID
> Status
> Created
> Title
> Description
> 
> 
> 
> {% for ticket in open_tickets %}
> 
> {{ ticket.id }}
> {{ ticket.status }}
> {{ ticket.created_by }}
> {{ ticket.ticket_title }}
> {{ ticket.ticket_description }}
>  Accept
> 
> {% endfor %}
> 
> {% elif tickets.status == 'Accepted' %}
> 
> 
> 
> ID
> Status
> Created by
> Title
> Description
> 
> 
>
> 
> {% for ticket in accepted_tickets %}
> 
> {{ ticket.id }}
> {{ ticket.status }}
> {{ ticket.created_by }}
> {{ ticket.ticket_title }}
> {{ ticket.ticket_description }}
> Complete
> 
> {% endfor %}
> 
>
> {% elif tickets.status == 'Completed' %}
>
> 
>
> 
> 
> ID
> Status
> Created by
> Title
> Description
> 
> 
>
> 
> {% for ticket in completed_tickets %}
> 
> {{ ticket.id }}
> {{ ticket.status }}
> {{ ticket.created_by }}
> {{ ticket.ticket_title }}
> {{ ticket.ticket_description }}
> 
> {% endfor %}
> {% else %}
> 
> 
> 
> ID
> Status
> Created by
> Title
> Description
> 
> 
>
> 
> {% for ticket in closed_tickets %}
> 
> {{ ticket.id }}
> {{ ticket.status }}
> {{ ticket.created_by }}
> {{ ticket.ticket_title }}
> {{ ticket.ticket_description }}
> 
> {% endfor %}
> {% endif %}
> {% endfor %}
> {% endblock %}
>
>
>
>
> On Monday, 22 November 2021 at 13:22:47 UTC+5:30 David Nugent wrote:
>
>> Well, there are several ways you can deal with that.
>>
>> Probably easiest is to override get_template() and switch the template
>> based on whatever type of ticket you're managing or you can change the
>> value of self.template_name based on the request.
>>
>> Or maybe you prefer a single template to deal with all cases with
>> conditional blocks where appropriate.
>>
>>
>> Regards,
>> David
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/786fa7af-0a81-4cf7-9a2e-c2fd2e9f0323n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOGms2_ZR_rrHuANSVAAA0Ca5ow9HVzLHQDVBf%3Dz2XjBEGTmYg%40mail.gmail.com.


Re: Multiple Templates in single list view

2021-11-22 Thread ram s
will update asap

On Mon, Nov 22, 2021 at 1:22 PM David Nugent  wrote:

> Well, there are several ways you can deal with that.
>
> Probably easiest is to override get_template() and switch the template
> based on whatever type of ticket you're managing or you can change the
> value of self.template_name based on the request.
>
> Or maybe you prefer a single template to deal with all cases with
> conditional blocks where appropriate.
>
>
> Regards,
> David
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAE5VhgUCCnmkm%2BBe0EWLK4Nb%3DXUOHZAEYGax%2B2%2B-kCysYxdzHA%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOGms2_2O%3DqKRqKTPcy7GNUeWEJu-tuJPfHwr93KVr91sAYHOA%40mail.gmail.com.


Re: Multiple Templates in single list view

2021-11-22 Thread Trippy Samurai
Anyone plz review my code i am struggling to figure out what the issue here 
is

On Monday, 22 November 2021 at 16:35:32 UTC+5:30 Trippy Samurai wrote:

> Thanks David for the idea i appreciate it i have gone with last way of 
> doing things but it doesnt render anything on data
>
> Pls correct my code below 
>
>
>
> *views.py:*
>
> class DeveloperTicketView(TemplateView):
> template_name = 'app/ticket_view.html'
> ticket = Ticket.objects.all()
> extra_content = {'ticket_type':ticket}
>
> def get_context_data(self, **kwargs):
> context = super().get_context_data(**kwargs)
> context['open_tickets'] = Ticket.objects.filter(status = 'Opened')
> context['accepted_tickets'] = Ticket.objects.filter(status = 
> 'Accepted',accepted_by = self.request.user)
> context['completed_tickets'] = Ticket.objects.filter(status = 
> 'Completed',accepted_by = self.request.user)
> context['closed_tickets'] = Ticket.objects.filter(status = 
> 'Closed',accepted_by = self.request.user)
> return context
>
>
>
> ticket_view.html
>
> {% extends 'app/base.html' %}
>
> {% block body %} 
> {% for tickets in ticket_type%}
> {% if tickets.status == "Opened" %}
> 
> 
> 
> ID
> Status
> Created
> Title
> Description
> 
> 
> 
> {% for ticket in open_tickets %}
> 
> {{ ticket.id }}
> {{ ticket.status }}
> {{ ticket.created_by }}
> {{ ticket.ticket_title }}
> {{ ticket.ticket_description }}
>  Accept
> 
> {% endfor %}
> 
> {% elif tickets.status == 'Accepted' %}
> 
> 
> 
> ID
> Status
> Created by
> Title
> Description
> 
>  
>
> 
> {% for ticket in accepted_tickets %}
> 
> {{ ticket.id }}
> {{ ticket.status }}
> {{ ticket.created_by }}
> {{ ticket.ticket_title }}
> {{ ticket.ticket_description }}
> Complete
> 
> {% endfor %}
> 
>
> {% elif tickets.status == 'Completed' %}
>
> 
>
> 
> 
> ID
> Status
> Created by
> Title
> Description
> 
>  
>
> 
> {% for ticket in completed_tickets %}
> 
> {{ ticket.id }}
> {{ ticket.status }}
> {{ ticket.created_by }}
> {{ ticket.ticket_title }}
> {{ ticket.ticket_description }}
> 
> {% endfor %}
> {% else %}
> 
> 
> 
> ID
> Status
> Created by
> Title
> Description
> 
> 
>
> 
> {% for ticket in closed_tickets %}
> 
> {{ ticket.id }}
> {{ ticket.status }}
> {{ ticket.created_by }}
> {{ ticket.ticket_title }}
> {{ ticket.ticket_description }}
> 
> {% endfor %}
> {% endif %}
> {% endfor %}
> {% endblock %}
>
>
>
>
> On Monday, 22 November 2021 at 13:22:47 UTC+5:30 David Nugent wrote:
>
>> Well, there are several ways you can deal with that.
>>
>> Probably easiest is to override get_template() and switch the template 
>> based on whatever type of ticket you're managing or you can change the 
>> value of self.template_name based on the request.
>>
>> Or maybe you prefer a single template to deal with all cases with 
>> conditional blocks where appropriate.
>>
>>
>> Regards,
>> David
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c31184b3-6ab9-4b71-a233-6b81cb5e4331n%40googlegroups.com.


Re: Multiple Templates in single list view

2021-11-22 Thread Trippy Samurai
Thanks David for the idea i appreciate it i have gone with last way of 
doing things but it doesnt render anything on data

Pls correct my code below 



*views.py:*

class DeveloperTicketView(TemplateView):
template_name = 'app/ticket_view.html'
ticket = Ticket.objects.all()
extra_content = {'ticket_type':ticket}

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['open_tickets'] = Ticket.objects.filter(status = 'Opened')
context['accepted_tickets'] = Ticket.objects.filter(status = 
'Accepted',accepted_by = self.request.user)
context['completed_tickets'] = Ticket.objects.filter(status = 
'Completed',accepted_by = self.request.user)
context['closed_tickets'] = Ticket.objects.filter(status = 
'Closed',accepted_by = self.request.user)
return context



ticket_view.html

{% extends 'app/base.html' %}

{% block body %} 
{% for tickets in ticket_type%}
{% if tickets.status == "Opened" %}



ID
Status
Created
Title
Description



{% for ticket in open_tickets %}

{{ ticket.id }}
{{ ticket.status }}
{{ ticket.created_by }}
{{ ticket.ticket_title }}
{{ ticket.ticket_description }}
 Accept

{% endfor %}

{% elif tickets.status == 'Accepted' %}



ID
Status
Created by
Title
Description

 


{% for ticket in accepted_tickets %}

{{ ticket.id }}
{{ ticket.status }}
{{ ticket.created_by }}
{{ ticket.ticket_title }}
{{ ticket.ticket_description }}
Complete

{% endfor %}


{% elif tickets.status == 'Completed' %}





ID
Status
Created by
Title
Description

 


{% for ticket in completed_tickets %}

{{ ticket.id }}
{{ ticket.status }}
{{ ticket.created_by }}
{{ ticket.ticket_title }}
{{ ticket.ticket_description }}

{% endfor %}
{% else %}



ID
Status
Created by
Title
Description




{% for ticket in closed_tickets %}

{{ ticket.id }}
{{ ticket.status }}
{{ ticket.created_by }}
{{ ticket.ticket_title }}
{{ ticket.ticket_description }}

{% endfor %}
{% endif %}
{% endfor %}
{% endblock %}




On Monday, 22 November 2021 at 13:22:47 UTC+5:30 David Nugent wrote:

> Well, there are several ways you can deal with that.
>
> Probably easiest is to override get_template() and switch the template 
> based on whatever type of ticket you're managing or you can change the 
> value of self.template_name based on the request.
>
> Or maybe you prefer a single template to deal with all cases with 
> conditional blocks where appropriate.
>
>
> Regards,
> David
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/786fa7af-0a81-4cf7-9a2e-c2fd2e9f0323n%40googlegroups.com.


Re: Multiple Templates in single list view

2021-11-21 Thread David Nugent
Well, there are several ways you can deal with that.

Probably easiest is to override get_template() and switch the template
based on whatever type of ticket you're managing or you can change the
value of self.template_name based on the request.

Or maybe you prefer a single template to deal with all cases with
conditional blocks where appropriate.


Regards,
David

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE5VhgUCCnmkm%2BBe0EWLK4Nb%3DXUOHZAEYGax%2B2%2B-kCysYxdzHA%40mail.gmail.com.


Re: Multiple Templates in single list view

2021-11-21 Thread Trippy Samurai
What about the templates i have three different templates for as u can see 
in template_name in the above views ,how do i deal with it if i actualyl 
had one template the above could have worked.
On Monday, 22 November 2021 at 12:42:59 UTC+5:30 sutharl...@gmail.com wrote:

> we can go like 
>
> ```
>
> class Manager(...):
> def get_context_data(self, **kwargs):
> context = super() 
> context["open_tickets"] = Ticket.objects.filter(status="OPEN")
> context["accepted_tickets"] = Ticket.objects.filter(status="ACCEPTED")
> context["completed_tickets"] = Ticket.objects.filter(status="COMPLETED")
> return context
> ```
>
> On Mon, 22 Nov 2021 at 12:19, Trippy Samurai  
> wrote:
>
>> Hi Elena Thanks for the reply i have three different html pages to 
>> display open tickets closed tickets accepted tickets etc each of them have 
>> different ticket statuses i have them written in different views as above 
>> to display each type of ticket at different pages how can i combine all 
>> three in  a single view so that i dont repeat my logic in views.Is there a 
>> way to acheive all the three views writing in a single view?
>>
>> On Monday, 22 November 2021 at 10:04:14 UTC+5:30 elena wrote:
>>
>>> Hi,
>>>
>>> The problem is it's unclear what your question is. Can you be clearer 
>>> about what outcome you're trying to achieve? 
>>>
>>>
>>> ---
>>> Elena Williams
>>> Github: elena 
>>>
>>>
>>> On Mon, 22 Nov 2021 at 15:20, Trippy Samurai  
>>> wrote:
>>>
 Any one plz


 On Sunday, 21 November 2021 at 15:09:39 UTC+5:30 Trippy Samurai wrote:

> Hello,
> I have different views for displaying different templates how do i 
> write them into one single Listview so that i can take care of DRY
>
>
> [image: Screenshot 2021-11-21 at 3.08.58 PM.png]
>
 -- 
 You received this message because you are subscribed to the Google 
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to django-users...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/d86e1449-a17e-4e93-9dd2-1fae9a7e91d7n%40googlegroups.com
  
 
 .

>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/c5eeae75-7c09-4f7e-928c-d03d5f10165an%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a000369b-b20f-4737-9bdc-f913f5af0a08n%40googlegroups.com.


Re: Multiple Templates in single list view

2021-11-21 Thread David Nugent
Hi Lalit,

On Mon, Nov 22, 2021 at 6:12 PM Lalit Suthar 
wrote:

> we can go like
>
> ```
>
> class Manager(...):
> def get_context_data(self, **kwargs):
> context = super() 
> context["open_tickets"] = Ticket.objects.filter(status="OPEN")
> context["accepted_tickets"] = Ticket.objects.filter(status="ACCEPTED")
> context["completed_tickets"] = Ticket.objects.filter(status="COMPLETED")
> return context
> ```
>
> 


That is certainly one value solution, though for any call there are
potentially (ignoring cache) 3 db queries.

To avoid that, an arg or kwarg could be passed to the view by implementing
`get` and allowing for it in the associated path in urls.py. This is
typically a better pattern and very similar to what Dango admin does when a
filter is enabled.

I would also avoid the word `Manager` in a CBV, since `Manager` has a
special meaning in Django.

Regards, David

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE5VhgW3WcZASeOpfqo4_nxzPpZRJZrV-SWAKFByiDG56fxNGQ%40mail.gmail.com.


Re: Multiple Templates in single list view

2021-11-21 Thread Lalit Suthar
we can go like

```

class Manager(...):
def get_context_data(self, **kwargs):
context = super() 
context["open_tickets"] = Ticket.objects.filter(status="OPEN")
context["accepted_tickets"] = Ticket.objects.filter(status="ACCEPTED")
context["completed_tickets"] = Ticket.objects.filter(status="COMPLETED")
return context
```

On Mon, 22 Nov 2021 at 12:19, Trippy Samurai 
wrote:

> Hi Elena Thanks for the reply i have three different html pages to display
> open tickets closed tickets accepted tickets etc each of them have
> different ticket statuses i have them written in different views as above
> to display each type of ticket at different pages how can i combine all
> three in  a single view so that i dont repeat my logic in views.Is there a
> way to acheive all the three views writing in a single view?
>
> On Monday, 22 November 2021 at 10:04:14 UTC+5:30 elena wrote:
>
>> Hi,
>>
>> The problem is it's unclear what your question is. Can you be clearer
>> about what outcome you're trying to achieve?
>>
>>
>> ---
>> Elena Williams
>> Github: elena 
>>
>>
>> On Mon, 22 Nov 2021 at 15:20, Trippy Samurai 
>> wrote:
>>
>>> Any one plz
>>>
>>>
>>> On Sunday, 21 November 2021 at 15:09:39 UTC+5:30 Trippy Samurai wrote:
>>>
 Hello,
 I have different views for displaying different templates how do i
 write them into one single Listview so that i can take care of DRY


 [image: Screenshot 2021-11-21 at 3.08.58 PM.png]

>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/d86e1449-a17e-4e93-9dd2-1fae9a7e91d7n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c5eeae75-7c09-4f7e-928c-d03d5f10165an%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGp2JVHGLavBh8sZLqepP5QMcQYVdv1m0_AO_rKK0PAHun1NGA%40mail.gmail.com.


Re: Multiple Templates in single list view

2021-11-21 Thread Trippy Samurai
Hi Elena Thanks for the reply i have three different html pages to display 
open tickets closed tickets accepted tickets etc each of them have 
different ticket statuses i have them written in different views as above 
to display each type of ticket at different pages how can i combine all 
three in  a single view so that i dont repeat my logic in views.Is there a 
way to acheive all the three views writing in a single view?

On Monday, 22 November 2021 at 10:04:14 UTC+5:30 elena wrote:

> Hi,
>
> The problem is it's unclear what your question is. Can you be clearer 
> about what outcome you're trying to achieve? 
>
>
> ---
> Elena Williams
> Github: elena 
>
>
> On Mon, 22 Nov 2021 at 15:20, Trippy Samurai  
> wrote:
>
>> Any one plz
>>
>>
>> On Sunday, 21 November 2021 at 15:09:39 UTC+5:30 Trippy Samurai wrote:
>>
>>> Hello,
>>> I have different views for displaying different templates how do i write 
>>> them into one single Listview so that i can take care of DRY
>>>
>>>
>>> [image: Screenshot 2021-11-21 at 3.08.58 PM.png]
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/d86e1449-a17e-4e93-9dd2-1fae9a7e91d7n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c5eeae75-7c09-4f7e-928c-d03d5f10165an%40googlegroups.com.


Re: Multiple Templates in single list view

2021-11-21 Thread Elena Williams
Hi,

The problem is it's unclear what your question is. Can you be clearer about
what outcome you're trying to achieve?


---
Elena Williams
Github: elena 


On Mon, 22 Nov 2021 at 15:20, Trippy Samurai 
wrote:

> Any one plz
>
>
> On Sunday, 21 November 2021 at 15:09:39 UTC+5:30 Trippy Samurai wrote:
>
>> Hello,
>> I have different views for displaying different templates how do i write
>> them into one single Listview so that i can take care of DRY
>>
>>
>> [image: Screenshot 2021-11-21 at 3.08.58 PM.png]
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d86e1449-a17e-4e93-9dd2-1fae9a7e91d7n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMRRKVfEu7vdQsmPr7wD4Ep3j-UhUKwUQqZ5J4yVFAY2JW-TVQ%40mail.gmail.com.


Re: Multiple Templates in single list view

2021-11-21 Thread Trippy Samurai
Any one plz


On Sunday, 21 November 2021 at 15:09:39 UTC+5:30 Trippy Samurai wrote:

> Hello,
> I have different views for displaying different templates how do i write 
> them into one single Listview so that i can take care of DRY
>
>
> [image: Screenshot 2021-11-21 at 3.08.58 PM.png]
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d86e1449-a17e-4e93-9dd2-1fae9a7e91d7n%40googlegroups.com.