Re: Django How to write Customized Query ( Display Information Departmentwise)

2019-04-23 Thread Gourav Chawla
No sir please! Gourav is just fine. Also, you would need to go edit/add code in the admin.py file for this to work. Try this part of the docs: https://docs.djangoproject.com/en/2.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter Hope, it helps. On Mon, 22 Apr, 2019, 1:15 PM

Re: Django How to write Customized Query ( Display Information Departmentwise)

2019-04-22 Thread Balaji Shetty
Dear Gaurav Sir I am very much thankful to you for your reply to my query. My questions is *How can i make the customization in Django Admin Panel itself to implement necessary logic after user of particular department do the login.( How and where to embed proposed Logic

Re: Django How to write Customized Query ( Display Information Departmentwise)

2019-04-20 Thread Sithembewena L. Dube
Your model fields are not cased correctly. https://stackoverflow.com/questions/8908760/should-i-use-camel-case-or-underscores-in-python Kind regards, Sithu *Sent with Shift

Django How to write Customized Query ( Display Information Departmentwise)

2019-04-20 Thread Gourav Chawla
First of all, use appropriate model fields for linking objects. For example users should be a foreign key to your(or Django's) user table. Then whenever you want to show data on any interface to any user, just filter content/rows by user department. Something like:

Django How to write Customized Query ( Display Information Departmentwise)

2019-04-19 Thread Balaji Shetty
HI My models.py class T1(models.Model): CaseNumber = models.TextField(blank=True,null=True) UserCurrent = models.TextField(blank=True,null=True,default='user1') UserCurrentDepartment = models.TextField(blank=True,null=True) def __str__(self): return '%s %s' %