Skip to content

Commit

Permalink
API - fix report action model
Browse files Browse the repository at this point in the history
  • Loading branch information
SamR1 committed Nov 11, 2024
1 parent 68d98f5 commit a97dd48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions fittrackee/reports/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ class ReportAction(BaseModel):
db.Integer,
db.ForeignKey("reports.id", ondelete="CASCADE"),
index=True,
nullable=False,
)
user_id = db.Column(
db.Integer,
Expand Down
1 change: 1 addition & 0 deletions fittrackee/tests/reports/test_reports_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ def test_is_reported_user_warned_is_true_when_user_warning_action_exists(
reported_by=user_3.id,
reported_object=user_2,
)
db.session.add(report)
report_action = ReportAction(
admin_user_id=user_1_admin.id,
action_type="user_warning",
Expand Down

0 comments on commit a97dd48

Please sign in to comment.