-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
6 additions
and
4 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
2 changes: 1 addition & 1 deletion
2
{{cookiecutter.project_slug}}/src/.django-app-template/api/serializers/app_name.py-tpl
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from rest_framework import serializers | ||
|
||
# Create your DRF serializers here, rename file and add to __init__.py. | ||
# Rename this file to singular form of your entity, e.g. "orders.py -> order.py". Add your class to __init__.py. |
2 changes: 1 addition & 1 deletion
2
{{cookiecutter.project_slug}}/src/.django-app-template/api/views/app_name.py-tpl
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from app.api.viewsets import DefaultModelViewSet | ||
|
||
# Create your API views and viewsets here. | ||
# Rename this file to singular form of your entity, e.g. "orders.py -> order.py". Add your class to __init__.py. |
4 changes: 2 additions & 2 deletions
4
{{cookiecutter.project_slug}}/src/.django-app-template/models/app_name.py-tpl
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from django.db import models | ||
|
||
from app.models import DefaultModel | ||
from app.models import DefaultModel, TimeStampedModel | ||
|
||
# Create your model here. One model is one file. Rename file and add model to __init__.py. | ||
# Rename this file to singular form of your entity, e.g. "orders.py -> order.py". Add your class to __init__.py. |