-
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4790 from freelawproject/3080-es-code-clean-ups
3080 Clean up of the alert model
- Loading branch information
Showing
14 changed files
with
258 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
143 changes: 0 additions & 143 deletions
143
cl/alerts/management/commands/clean_up_search_alerts.py
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
cl/alerts/migrations/0013_alter_alert_search_type_validator_noop.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Generated by Django 5.1.2 on 2024-12-04 23:12 | ||
|
||
import cl.alerts.models | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("alerts", "0012_add_schedule_alert_hit_content_type_index"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="alert", | ||
name="alert_type", | ||
field=models.CharField( | ||
choices=[ | ||
("o", "Opinions"), | ||
("r", "RECAP"), | ||
("oa", "Oral Arguments"), | ||
], | ||
help_text="The type of search alert this is, one of: o (Opinions), r (RECAP), oa (Oral Arguments)", | ||
max_length=3, | ||
validators=[cl.alerts.models.validate_alert_type], | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="alertevent", | ||
name="alert_type", | ||
field=models.CharField( | ||
choices=[ | ||
("o", "Opinions"), | ||
("r", "RECAP"), | ||
("oa", "Oral Arguments"), | ||
], | ||
help_text="The type of search alert this is, one of: o (Opinions), r (RECAP), oa (Oral Arguments)", | ||
max_length=3, | ||
validators=[cl.alerts.models.validate_alert_type], | ||
), | ||
), | ||
] |
10 changes: 10 additions & 0 deletions
10
cl/alerts/migrations/0013_alter_alert_search_type_validator_noop.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
BEGIN; | ||
-- | ||
-- Alter field alert_type on alert | ||
-- | ||
-- (no-op) | ||
-- | ||
-- Alter field alert_type on alertevent | ||
-- | ||
-- (no-op) | ||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.