Skip to content

Commit

Permalink
Merge 6e58797 into ec6f5e3
Browse files Browse the repository at this point in the history
  • Loading branch information
reiosantos committed Oct 4, 2018
2 parents ec6f5e3 + 6e58797 commit bf8621a
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 236 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ db.sqlite3
tmp
my_env

#migrations
migrations
83 changes: 0 additions & 83 deletions authors/apps/articles/migrations/0001_initial.py

This file was deleted.

78 changes: 0 additions & 78 deletions authors/apps/articles/migrations/0002_auto_20180924_1007.py

This file was deleted.

2 changes: 1 addition & 1 deletion authors/apps/articles/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class ArticleReport(models.Model):
Model for creating reports made on articles
"""
article = models.ForeignKey(
Article, blank=False, null=False, on_delete=models.CASCADE)
Article, blank=False, null=False, on_delete=models.CASCADE, default=0)
user = models.ForeignKey(
User, blank=False, null=False, on_delete=models.CASCADE)
report_message = models.TextField(blank=True, null=True)
Expand Down
38 changes: 0 additions & 38 deletions authors/apps/authentication/migrations/0001_initial.py

This file was deleted.

35 changes: 0 additions & 35 deletions authors/apps/profiles/migrations/0001_initial.py

This file was deleted.

2 changes: 2 additions & 0 deletions authors/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
]

MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
Expand Down Expand Up @@ -131,6 +132,7 @@
'0.0.0.0:4000',
'localhost:4000',
)
CORS_ORIGIN_ALLOW_ALL = True

# Tell Django about the custom `User` model we created. The string
# `authentication.User` tells Django we are referring to the `User` model in
Expand Down

0 comments on commit bf8621a

Please sign in to comment.