forked from zpurcey/new-teamtemp
-
Notifications
You must be signed in to change notification settings - Fork 5
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
8 changed files
with
264 additions
and
43 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 |
---|---|---|
@@ -1,19 +1,23 @@ | ||
Django==1.9.7 | ||
django-bootstrap3==7.0.1 | ||
dj-database-url==0.4.1 | ||
dj-static==0.0.6 | ||
django-crispy-forms==1.6.0 | ||
django-csp==2.0.3 | ||
django-filter==0.13.0 | ||
djangorestframework==3.3.3 | ||
django-secure==1.0.1 | ||
django-toolbelt==0.0.1 | ||
dj-database-url==0.4.1 | ||
dj-static==0.0.6 | ||
gunicorn==19.6.0 | ||
https://google-visualization-python.googlecode.com/files/gviz_api_py-1.8.2.tar.gz | ||
markdown==2.6.6 | ||
Pillow==3.2.0 | ||
poster==0.8.1 | ||
py-bcrypt==0.4 | ||
psycopg2==2.6.1 | ||
py-bcrypt==0.4 | ||
pytz==2016.4 | ||
requests==2.10.0 | ||
static==1.1.1 | ||
Unirest==1.1.7 | ||
wsgiref==0.1.2 | ||
whitenoise==3.2 | ||
wsgiref==0.1.2 |
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,44 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.7 on 2016-06-17 01:12 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('responses', '0002_auto_20160614_2324'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='teamresponsehistory', | ||
options={'verbose_name_plural': 'Team response histories'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='teams', | ||
options={'verbose_name_plural': 'Teams'}, | ||
), | ||
migrations.AlterField( | ||
model_name='teamresponsehistory', | ||
name='request', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='team_response_histories', to='responses.TeamTemperature'), | ||
), | ||
migrations.AlterField( | ||
model_name='teams', | ||
name='request', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='teams', to='responses.TeamTemperature'), | ||
), | ||
migrations.AlterField( | ||
model_name='teamtemperature', | ||
name='creator', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='team_temperatures', to='responses.User'), | ||
), | ||
migrations.AlterField( | ||
model_name='temperatureresponse', | ||
name='request', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='temperature_responses', to='responses.TeamTemperature'), | ||
), | ||
] |
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,49 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.7 on 2016-06-17 03:24 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('responses', '0003_auto_20160617_1112'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='teamresponsehistory', | ||
name='team_name', | ||
field=models.CharField(db_index=True, max_length=64, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='teams', | ||
name='team_name', | ||
field=models.CharField(db_index=True, max_length=64, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='temperatureresponse', | ||
name='archive_date', | ||
field=models.DateTimeField(db_index=True, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='temperatureresponse', | ||
name='archived', | ||
field=models.BooleanField(db_index=True, default=False), | ||
), | ||
migrations.AlterField( | ||
model_name='temperatureresponse', | ||
name='team_name', | ||
field=models.CharField(db_index=True, max_length=64, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='wordcloudimage', | ||
name='word_list', | ||
field=models.CharField(db_index=True, max_length=5000), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='teams', | ||
unique_together=set([('request', 'team_name')]), | ||
), | ||
] |
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,50 @@ | ||
from rest_framework import serializers | ||
from models import User, TeamTemperature, TemperatureResponse, TeamResponseHistory, Teams, WordCloudImage | ||
|
||
|
||
class UserSerializer(serializers.HyperlinkedModelSerializer): | ||
class Meta: | ||
model = User | ||
fields = ('id',) | ||
|
||
|
||
class WordCloudImageSerializer(serializers.HyperlinkedModelSerializer): | ||
class Meta: | ||
model = WordCloudImage | ||
fields = ('creation_date', 'word_list', 'image_url') | ||
|
||
|
||
class TeamTemperatureSerializer(serializers.HyperlinkedModelSerializer): | ||
|
||
class Meta: | ||
model = TeamTemperature | ||
fields = ('id', 'creation_date', 'creator', 'archive_schedule', | ||
'archive_date', 'survey_type', 'default_tz', | ||
'max_word_count', 'dept_names', 'site_names', | ||
'region_names', 'teams', 'team_response_histories', | ||
'temperature_responses') | ||
|
||
|
||
class TemperatureResponseSerializer(serializers.HyperlinkedModelSerializer): | ||
class Meta: | ||
model = TemperatureResponse | ||
fields = ('request', 'responder', 'score', 'word', 'team_name', | ||
'archived', 'response_date', 'archive_date') | ||
|
||
|
||
class TeamSerializer(serializers.HyperlinkedModelSerializer): | ||
|
||
class Meta: | ||
model = Teams | ||
fields = ('request', 'team_name', 'dept_name', 'site_name', | ||
'region_name') | ||
|
||
|
||
class TeamResponseHistorySerializer(serializers.HyperlinkedModelSerializer): | ||
|
||
class Meta: | ||
model = TeamResponseHistory | ||
fields = ('request', 'average_score', 'word_list', 'responder_count', | ||
'team_name', 'archive_date') | ||
|
||
|
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.