Re: I need help

2019-08-14 Thread Pavlos Georgiadis
Hi Fadi, This is the developers mailing list dedicated to development of django itself. Questions like this should be addressed to the users mailing list. P.S: Do a search for "django model property decorator" (there is also a cached_property decorator). It will help you find a solution. -- Pav

I need help

2019-08-14 Thread Become a Physicist
You can create a drop down menu for this. AGE_CHOICES = ( ('11-20','11-20'), ('21-30', '21-30'), ) class MyModel(models.Model): color = models.CharField(max_length=6, choices=AGE_CHOICES, blank=True, null=True) Hope this helps... 😊 With regards, Shubham Gupta -- You received thi

Re: I need help

2019-08-14 Thread Adam Johnson
Hi! I think you've found the wrong mailing list for this post. This mailing list is for the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. People on this list are unlikely to answer yo

I need help

2019-08-13 Thread 'Fadi Haddad' via Django developers (Contributions to Django itself)
Hi, I have created a table called dataset I put the age as integer e.g. 34, 23, 10, 47 I need to create Age range for the age column. I need the age to be displayed as [1-10], [11,20], [21-30] ... etc. Can this happen by replacing values or do I have to create another column for this? The go