summaryrefslogtreecommitdiff
path: root/tests/admin_widgets/models.py
diff options
context:
space:
mode:
authorJulien Phalip <jphalip@gmail.com>2013-08-04 16:06:47 -0700
committerJulien Phalip <jphalip@gmail.com>2013-08-04 16:08:45 -0700
commit995ffbb2a60c80217bf4cbe028b7712fafaf11f2 (patch)
tree2526b02e3583bc42252ae7f013d6b0ed42847955 /tests/admin_widgets/models.py
parent1593a86494f246f5410a7ad2f96bef67fb778778 (diff)
Added some Selenium tests for the admin raw id widget.
Diffstat (limited to 'tests/admin_widgets/models.py')
-rw-r--r--tests/admin_widgets/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/admin_widgets/models.py b/tests/admin_widgets/models.py
index 2c9bc5b32a..cb97242e03 100644
--- a/tests/admin_widgets/models.py
+++ b/tests/admin_widgets/models.py
@@ -56,7 +56,8 @@ class Inventory(models.Model):
return self.name
class Event(models.Model):
- band = models.ForeignKey(Band, limit_choices_to=models.Q(pk__gt=0))
+ main_band = models.ForeignKey(Band, limit_choices_to=models.Q(pk__gt=0), related_name='events_main_band_at')
+ supporting_bands = models.ManyToManyField(Band, null=True, blank=True, related_name='events_supporting_band_at')
start_date = models.DateField(blank=True, null=True)
start_time = models.TimeField(blank=True, null=True)
description = models.TextField(blank=True)