Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unpublishing tables #430

Closed
wants to merge 1 commit into from
Closed

Add unpublishing tables #430

wants to merge 1 commit into from

Conversation

AndrewLester
Copy link
Contributor

Summary

Description of PR here...
Closes #85, Closes #22

Changes

  • Item 1
  • Item 2
  • Item 3

Screenshots

(Insert image, only for frontend)

Requests / Responses

Request
(Only for backend)
POST /api/users Returns a list of users

{
  "data": {
    "attributes": {
      "name": "The Dude",
      "email": "[email protected]",
      "password": "hellopassword"
    }
  },
  "type": "users"
}

Response
(Only for backend)
HTTP/1.1 200 OK

{
  "data": {
    "type": "users",
    "id": "4",
    "attributes": {
      "name": "The Dude",
      "email": "[email protected]",
      "last-logged-in": null,
      "created-at": "2016-10-20T17:45:08.190Z",
      "updated-at": "2016-10-20T17:45:08.190Z"
    },
    "links": {
      "self": "/users/4"
    }
  }
}

default=uuid.uuid4,
editable=False,
unique=True)
reason = models.ForeignKey(UnpublishmentReason,
Copy link
Contributor

@ajain1921 ajain1921 Apr 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the form on the frontend allows for multiple reasons, I believe this should be a ManyToManyField.

@tuxology tuxology added the h4i Hack4Impact issue label Apr 21, 2022
@tuxology tuxology deleted the moderating branch September 28, 2023 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
h4i Hack4Impact issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants