-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #240 from bcgov/release-v0.1.0
Release v0.1.0.2
- Loading branch information
Showing
24 changed files
with
465 additions
and
27 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,102 @@ | ||
[ | ||
{ | ||
"fields": { | ||
"description": "2010", | ||
"display_order": "1", | ||
"effective_date": "2010-01-01", | ||
"expiration_date": "2010-12-31" | ||
}, | ||
"model": "api.complianceperiod", | ||
"pk": "1" | ||
}, | ||
{ | ||
"fields": { | ||
"description": "2011", | ||
"display_order": "2", | ||
"effective_date": "2011-01-01", | ||
"expiration_date": "2011-12-31" | ||
}, | ||
"model": "api.complianceperiod", | ||
"pk": "2" | ||
}, | ||
{ | ||
"fields": { | ||
"description": "2012-13", | ||
"display_order": "3", | ||
"effective_date": "2012-01-01", | ||
"expiration_date": "2013-06-30" | ||
}, | ||
"model": "api.complianceperiod", | ||
"pk": "3" | ||
}, | ||
{ | ||
"fields": { | ||
"description": "2013-14", | ||
"display_order": "4", | ||
"effective_date": "2013-07-01", | ||
"expiration_date": "2014-12-31" | ||
}, | ||
"model": "api.complianceperiod", | ||
"pk": "4" | ||
}, | ||
{ | ||
"fields": { | ||
"description": "2015", | ||
"display_order": "5", | ||
"effective_date": "2015-01-01", | ||
"expiration_date": "2015-12-31" | ||
}, | ||
"model": "api.complianceperiod", | ||
"pk": "5" | ||
}, | ||
{ | ||
"fields": { | ||
"description": "2016", | ||
"display_order": "6", | ||
"effective_date": "2016-01-01", | ||
"expiration_date": "2016-12-31" | ||
}, | ||
"model": "api.complianceperiod", | ||
"pk": "6" | ||
}, | ||
{ | ||
"fields": { | ||
"description": "2017", | ||
"display_order": "7", | ||
"effective_date": "2017-01-01", | ||
"expiration_date": "2017-12-31" | ||
}, | ||
"model": "api.complianceperiod", | ||
"pk": "7" | ||
}, | ||
{ | ||
"fields": { | ||
"description": "2018", | ||
"display_order": "8", | ||
"effective_date": "2018-01-01", | ||
"expiration_date": "2018-12-31" | ||
}, | ||
"model": "api.complianceperiod", | ||
"pk": "8" | ||
}, | ||
{ | ||
"fields": { | ||
"description": "2019", | ||
"display_order": "9", | ||
"effective_date": "2019-01-01", | ||
"expiration_date": "2019-12-31" | ||
}, | ||
"model": "api.complianceperiod", | ||
"pk": "9" | ||
}, | ||
{ | ||
"fields": { | ||
"description": "2020", | ||
"display_order": "10", | ||
"effective_date": "2020-01-01", | ||
"expiration_date": "2020-12-31" | ||
}, | ||
"model": "api.complianceperiod", | ||
"pk": "10" | ||
} | ||
] |
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,21 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11 on 2018-04-24 14:45 | ||
from __future__ import unicode_literals | ||
|
||
import django.contrib.auth.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0004_auto_20180209_2207'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='user', | ||
name='username', | ||
field=models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.ASCIIUsernameValidator()], verbose_name='username'), | ||
), | ||
] |
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,39 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11 on 2018-04-24 15:27 | ||
from __future__ import unicode_literals | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0005_auto_20180424_1445'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='CompliancePeriod', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('create_timestamp', models.DateTimeField(auto_now_add=True, null=True)), | ||
('update_timestamp', models.DateTimeField(auto_now=True, null=True)), | ||
('description', models.CharField(blank=True, max_length=1000, null=True)), | ||
('display_order', models.IntegerField()), | ||
('effective_date', models.DateField(blank=True, null=True)), | ||
('expiration_date', models.DateField(blank=True, null=True)), | ||
('create_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='api_complianceperiod_CREATE_USER', to=settings.AUTH_USER_MODEL)), | ||
('update_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='api_complianceperiod_UPDATE_USER', to=settings.AUTH_USER_MODEL)), | ||
], | ||
options={ | ||
'db_table': 'compliance_period', | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name='credittrade', | ||
name='compliance_period', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='credit_trades', to='api.CompliancePeriod'), | ||
), | ||
] |
21 changes: 21 additions & 0 deletions
21
backend/api/migrations/0007_credittradehistory_compliance_period.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,21 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11 on 2018-04-24 18:49 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0006_auto_20180424_1527'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='credittradehistory', | ||
name='compliance_period', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='credit_trade_histories', to='api.CompliancePeriod'), | ||
), | ||
] |
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,36 @@ | ||
""" | ||
REST API Documentation for the NRS TFRS Credit Trading Application | ||
The Transportation Fuels Reporting System is being designed to streamline | ||
compliance reporting for transportation fuel suppliers in accordance with | ||
the Renewable & Low Carbon Fuel Requirements Regulation. | ||
OpenAPI spec version: v1 | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
""" | ||
|
||
from django.db import models | ||
|
||
from auditable.models import Auditable | ||
|
||
|
||
class CompliancePeriod(Auditable): | ||
description = models.CharField(max_length=1000, blank=True, null=True) | ||
display_order = models.IntegerField() | ||
effective_date = models.DateField(blank=True, null=True) | ||
expiration_date = models.DateField(blank=True, null=True) | ||
|
||
class Meta: | ||
db_table = 'compliance_period' |
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
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.