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:
@@ -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
|
||||
Reference in New Issue
Block a user