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