Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 531e6a2

Browse files
authored
Repaired example app (#1105)
1 parent db8b0ff commit 531e6a2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

‎example/fixtures/drf_example.json‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
"created_at": "2016年05月02日T10:09:48.277",
2727
"modified_at": "2016年05月02日T10:09:48.277",
2828
"name": "Alice",
29+
"full_name": "Alice Test",
2930
"email": "alice@example.com",
30-
"type": null
31+
"author_type": null
3132
}
3233
},
3334
{
@@ -37,8 +38,9 @@
3738
"created_at": "2016年05月02日T10:09:57.133",
3839
"modified_at": "2016年05月02日T10:09:57.133",
3940
"name": "Bob",
41+
"full_name": "Bob Test",
4042
"email": "bob@example.com",
41-
"type": null
43+
"author_type": null
4244
}
4345
},
4446
{

‎example/settings/dev.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
MEDIA_ROOT = os.path.normcase(os.path.dirname(os.path.abspath(__file__)))
77
MEDIA_URL = "/media/"
88
USE_TZ = False
9+
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
910

1011
DATABASE_ENGINE = "sqlite3"
1112

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /