File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2961,9 +2961,15 @@ class AdvisoryV2(models.Model):
29612961 )
29622962
29632963 date_published = models .DateTimeField (
2964- blank = True , null = True , help_text = "UTC Date of publication of the advisory"
2964+ blank = True ,
2965+ null = True ,
2966+ help_text = "UTC Date of publication of the advisory" ,
2967+ )
2968+ date_collected = models .DateTimeField (
2969+ auto_now_add = True ,
2970+ db_index = True ,
2971+ help_text = "UTC Date on which the advisory was collected" ,
29652972 )
2966- date_collected = models .DateTimeField (help_text = "UTC Date on which the advisory was collected" )
29672973
29682974 original_advisory_text = models .TextField (
29692975 blank = True ,
Original file line number Diff line number Diff line change @@ -313,7 +313,6 @@ def insert_advisory_v2(
313313 "avid" : f"{ pipeline_id } /{ advisory .advisory_id } " ,
314314 "summary" : advisory .summary ,
315315 "date_published" : advisory .date_published ,
316- "date_collected" : datetime .now (timezone .utc ),
317316 "original_advisory_text" : advisory .original_advisory_text ,
318317 "url" : advisory .url ,
319318 "precedence" : precedence ,
You can’t perform that action at this time.
0 commit comments