Clue Querying Objects

2022-02-23 Thread Hansel Johansyah
Dear Django users Can you guys give me some clue, for Querying objects. In the database I was input a price list, and when the client side fill the form and search. The django will display a result price with formulas, ex: formula = 1.8% (by the price) * rate(1000%) Need your advice. Thank's in

Question about from integer models

2022-05-30 Thread Hansel Johansyah
Hi Everyone I wanna question about the integer would input by models, with some class ClassName numb = models.IntegerField() and the views is : number = ClassName.objects.values_list('numb', flat=True).distinct() then the templates is : 1 2 3 4 5 so i call the number from django admin with {

Re: Question about from integer models

2022-05-30 Thread Hansel Johansyah
Hi Thank you for response anyway I have trying your tips, but It not works On Monday, May 30, 2022 at 8:08:02 PM UTC+7 chir...@gmail.com wrote: > Hi, > > As per my understanding, the thing you want to achieve can be done using > the below code. > > > {% for i in number %} >{{i}} >