1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Added some Selenium tests for the admin's filter_horizontal and filter_vertical widgets. Ref #13614, #15220.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Julien Phalip
2012-02-23 08:07:07 +00:00
parent 6daad896fb
commit f2de5f4cab
5 changed files with 176 additions and 13 deletions

View File

@@ -99,3 +99,21 @@ class Advisor(models.Model):
"""
name = models.CharField(max_length=20)
companies = models.ManyToManyField(Company)
class Student(models.Model):
name = models.CharField(max_length=255)
def __unicode__(self):
return self.name
class Meta:
ordering = ('name',)
class School(models.Model):
name = models.CharField(max_length=255)
students = models.ManyToManyField(Student, related_name='current_schools')
alumni = models.ManyToManyField(Student, related_name='previous_schools')
def __unicode__(self):
return self.name