- time_created = models.DateTimeField(default=datetime.datetime.now)
- location = models.ForeignKey(getattr(settings, 'PHILO_LOCATION_MODULE', Location), related_name='events')
- calendars = models.ManyToManyField(getattr(settings, 'PHILO_CALENDAR_MODULE', Calendar), related_name='events')
- tags = models.ManyToManyField(Tag)
+ location = models.ForeignKey(getattr(settings, 'PHILO_LOCATION_MODULE', Location), related_name='events', blank=True, null=True)
+ tags = models.ManyToManyField(Tag, blank=True, null=True)
+ parent_event = models.ForeignKey(Event, blank=True, null=True) # To handle series' of events.
+ user = models.ForeignKey(getattr(settings, 'PHILO_PERSON_MODULE', User)) # Should this be optional?
+ url = models.URLField(blank=True, null=True)
+ attachment = models.FileField(upload_to='events/attachments/%Y/%m/%d', blank=True, null=True)
+ image = models.ImageField(upload_to='events/images/%Y/%m/%d', blank=True, null=True)
+