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
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
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
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:
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' %
5 matches
Mail list logo