-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tracking pull request to merge release-1.27.0 to master (#724)
- Loading branch information
1 parent
2a9b961
commit e6d1ee7
Showing
78 changed files
with
5,771 additions
and
515 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
DATABASE_NAME=postgres | ||
DATABASE_USER=postgres | ||
DATABASE_PASSWORD=postgres | ||
DATABASE_ENGINE=postgresql | ||
DATABASE_SERVICE_NAME=postgresql | ||
POSTGRESQL_SERVICE_HOST=db | ||
POSTGRESQL_SERVICE_PORT=5432 | ||
KEYCLOAK_ENABLED=True | ||
KEYCLOAK_AUDIENCE=zeva-app | ||
KEYCLOAK_CLIENT_ID=zeva-app | ||
KEYCLOAK_REALM=http://keycloak:8080/auth/realms/zeva | ||
KEYCLOAK_ISSUER=http://localhost:8888/auth/realms/zeva | ||
KEYCLOAK_CERTS_URL=http://keycloak:8080/auth/realms/zeva/protocol/openid-connect/certs | ||
KEYCLOAK_SA_BASEURL=http://keycloak:8080 | ||
KEYCLOAK_SA_REALM=zeva | ||
KEYCLOAK_SA_CLIENT_ID=zeva-app-sa | ||
KEYCLOAK_SA_CLIENT_SECRET=06dc71d6-1800-4f5d-b7b3-4c4fda226599 | ||
SMTP_SERVER_HOST=127.0.0.1 | ||
SMTP_SERVER_PORT=2500 | ||
EMAIL_SENDING_ENABLED=True | ||
EMAIL_FROM_ADDRESS=[email protected] | ||
DJANGO_DEBUG=True |
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,8 +1,7 @@ | ||
FROM python:3.7-stretch | ||
ENV PYTHONUNBUFFERED 1 | ||
RUN mkdir /app | ||
WORKDIR /app | ||
ADD requirements.txt . | ||
FROM python:3.7.6 | ||
|
||
ENV PYTHONUNBUFFERED=1 | ||
|
||
WORKDIR /api | ||
COPY requirements.txt /api/ | ||
RUN pip install -r requirements.txt | ||
ADD . . | ||
CMD python3 manage.py migrate && python3 manage.py createcachetable && python3 manage.py runserver 0.0.0.0:10102 |
18 changes: 18 additions & 0 deletions
18
backend/api/migrations/0107_modelyearreport_credit_reduction_selection.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 3.0.14 on 2021-06-01 15:55 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0106_auto_20210531_1443'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='modelyearreport', | ||
name='credit_reduction_selection', | ||
field=models.CharField(max_length=1, null=True), | ||
), | ||
] |
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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from rest_framework.serializers import ModelSerializer, SlugRelatedField | ||
from api.models.model_year import ModelYear | ||
from api.models.credit_class import CreditClass | ||
|
||
from api.models.model_year_report_adjustment import \ | ||
ModelYearReportAdjustment | ||
|
||
|
||
class ModelYearReportAdjustmentSerializer(ModelSerializer): | ||
credit_class = SlugRelatedField( | ||
slug_field='credit_class', | ||
queryset=CreditClass.objects.all() | ||
) | ||
model_year = SlugRelatedField( | ||
slug_field='name', | ||
queryset=ModelYear.objects.all() | ||
) | ||
|
||
class Meta: | ||
model = ModelYearReportAdjustment | ||
fields = ( | ||
'id', 'credit_class', 'model_year', 'is_reduction', | ||
'number_of_credits', | ||
) |
Oops, something went wrong.