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

Added some Selenium tests for the admin raw id widget.

This commit is contained in:
Julien Phalip
2013-08-04 16:06:47 -07:00
parent 1593a86494
commit 995ffbb2a6
3 changed files with 103 additions and 9 deletions

View File

@@ -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)