Re: display data

22 views
Skip to first unread message
Message has been deleted

Kushal Neupane

unread,
Mar 1, 2020, 8:42:51 AM3/1/20
to django...@googlegroups.com
Search render tag

On Sun, Mar 1, 2020, 19:20 Perceval Maturure <drper...@gmail.com> wrote:
Hi Team
is there anyone who has tried to display data from a table to six different cards, when another record is added the first initialy is replaced ?
regards


--
Perceval Maturure
083 303 9423

--
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/CAFZtZmAOy-JZJ3sjFu4VOufzYcBkSQt55y5o55aeFo_pMzkkSQ%40mail.gmail.com.

Naveen Arora

unread,
Mar 3, 2020, 4:13:36 AM3/3/20
to Django users
Hi,

Can you explain what you are trying to achieve clearly.?

Regards
Naveen Arora
Message has been deleted
Message has been deleted

Naveen Arora

unread,
Mar 4, 2020, 1:53:58 AM3/4/20
to Django users
So you want to display data from this model to six cards, but how..i mean each row can be said as "one data" so you want to display 6 rows of this table basically on 6 rows. Another question is how you want to filter the data, first 6 rows according to date, etc. ?

if you want to display first 6 responses of .all(), you can easily do it using " [ 0 : 6 ] "
  
On Tuesday, 3 March 2020 15:31:10 UTC+5:30, Perceval Maturure wrote:
Hi Naveena

I have a model below

I  I want to display records in the db on six cards as the end date is past then the record is removed from the list. I tried to use indexes but it dint work as epxected
Any ideas would be awesome to share

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0299d7d7-13f2-49a5-859f-4b3343f88625%40googlegroups.com.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages