-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug(responses): change model fields to use underscore in naming
- rename fields in models, views and serializers to use underscore naming convention [Fixes #166116245]
- Loading branch information
1 parent
4da5c6c
commit 01d9034
Showing
19 changed files
with
180 additions
and
54 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
32 changes: 32 additions & 0 deletions
32
authors/apps/articles/migrations/0034_auto_20190517_1220.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,32 @@ | ||
# Generated by Django 2.2 on 2019-05-17 12:20 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('articles', '0033_merge_20190516_1307'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='articlemodel', | ||
options={'ordering': ['-created_at']}, | ||
), | ||
migrations.RenameField( | ||
model_name='articlemodel', | ||
old_name='createdAt', | ||
new_name='created_at', | ||
), | ||
migrations.RenameField( | ||
model_name='articlemodel', | ||
old_name='tagList', | ||
new_name='tag_list', | ||
), | ||
migrations.RenameField( | ||
model_name='articlemodel', | ||
old_name='updatedAt', | ||
new_name='updated_at', | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
authors/apps/articles/migrations/0035_auto_20190520_0945.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,18 @@ | ||
# Generated by Django 2.2 on 2019-05-20 09:45 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('articles', '0034_auto_20190517_1220'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='articlemodel', | ||
old_name='favoritesCount', | ||
new_name='favorites_count', | ||
), | ||
] |
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
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
22 changes: 22 additions & 0 deletions
22
authors/apps/notifications/migrations/0006_auto_20190517_1220.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,22 @@ | ||
# Generated by Django 2.2 on 2019-05-17 12:20 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('notifications', '0005_auto_20190509_0353'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='notifications', | ||
options={'ordering': ['-created_at']}, | ||
), | ||
migrations.RenameField( | ||
model_name='notifications', | ||
old_name='createdAt', | ||
new_name='created_at', | ||
), | ||
] |
14 changes: 14 additions & 0 deletions
14
authors/apps/notifications/migrations/0007_merge_20190520_1150.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,14 @@ | ||
# Generated by Django 2.2 on 2019-05-20 11:50 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('notifications', '0006_auto_20190520_0901'), | ||
('notifications', '0006_auto_20190517_1220'), | ||
] | ||
|
||
operations = [ | ||
] |
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
22 changes: 22 additions & 0 deletions
22
authors/apps/reports/migrations/0009_auto_20190517_1220.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,22 @@ | ||
# Generated by Django 2.2 on 2019-05-17 12:20 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('reports', '0008_remove_reportmodel_reporter'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='reportmodel', | ||
options={'ordering': ['-created_at']}, | ||
), | ||
migrations.RenameField( | ||
model_name='reportmodel', | ||
old_name='createdAt', | ||
new_name='created_at', | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
authors/apps/reports/migrations/0010_auto_20190520_0951.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,18 @@ | ||
# Generated by Django 2.2 on 2019-05-20 09:51 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('reports', '0009_auto_20190517_1220'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='reportmodel', | ||
old_name='updatedAt', | ||
new_name='updated_at', | ||
), | ||
] |
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.