I am putting together a project that involves the following models:
class contentcreator(models.Model):
name = models.CharField(max_length=50)
phone = models.CharField(max_length=60, blank=True)
supervisor = models.CharField(max_length=60)
department = models.CharField(max_length=60, blank=True)
class accuracyreport(models.Model):
author = models.ForeignKey(contentcreator)
date = models.DateField()
slug = models.CharField(max_length=50)
description = models.TextField()
resolved = models.BooleanField(null=True)
responsible = models.ForeignKey(contentcreator)
resolutionnotes = models.TextField(blank=True)
The accuracyreport model is the meat. I'd like for supervisors to be
able to filter to errors made by their employees only.
How would I go about adding the 'supervisor' value to the list_filter?
Any adive is much appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---