File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -195,19 +195,4 @@ def __str__(self):
195195
196196class IgnoredPost (models .Model ):
197197 shortcode = models .CharField (max_length = 32 , unique = True )
198- added_at = models .DateTimeField (auto_now_add = True )
199-
200-
201- class Promotion (models .Model ):
202- # One promo window per event; extend it by spending more credits
203- event = models .OneToOneField (Events , on_delete = models .CASCADE , related_name = "promotion" )
204- starts_at = models .DateTimeField ()
205- ends_at = models .DateTimeField ()
206-
207- @property
208- def active (self ) -> bool :
209- now = timezone .now ()
210- return self .starts_at <= now <= self .ends_at
211-
212- def __str__ (self ):
213- return f"Promotion({ self .event .id } ) { self .starts_at } → { self .ends_at } "
198+ added_at = models .DateTimeField (auto_now_add = True )
You can’t perform that action at this time.
0 commit comments