Commit 5458c8b297409b154ffa713a2d1cd684de25c14d

Authored by Rohan Rangray
1 parent 2d533a7404
Exists in master

Added migrations. Changed data parameter in gcm request

Showing 3 changed files with 35 additions and 1 deletions Side-by-side Diff

flashcards/migrations/0019_auto_20150602_0826.py View file @ 5458c8b
  1 +# -*- coding: utf-8 -*-
  2 +from __future__ import unicode_literals
  3 +
  4 +from django.db import models, migrations
  5 +
  6 +
  7 +class Migration(migrations.Migration):
  8 +
  9 + dependencies = [
  10 + ('flashcards', '0018_flashcard_score'),
  11 + ]
  12 +
  13 + operations = [
  14 + migrations.AlterField(
  15 + model_name='flashcard',
  16 + name='score',
  17 + field=models.FloatField(default=0),
  18 + ),
  19 + ]
flashcards/migrations/0020_merge.py View file @ 5458c8b
  1 +# -*- coding: utf-8 -*-
  2 +from __future__ import unicode_literals
  3 +
  4 +from django.db import models, migrations
  5 +
  6 +
  7 +class Migration(migrations.Migration):
  8 +
  9 + dependencies = [
  10 + ('flashcards', '0019_auto_20150602_0826'),
  11 + ('flashcards', '0019_auto_20150602_1046'),
  12 + ]
  13 +
  14 + operations = [
  15 + ]
flashcards/models.py View file @ 5458c8b
... ... @@ -101,7 +101,7 @@
101 101 gcm = GCM(GCM_API_KEY)
102 102 gcm.plaintext_request(
103 103 registration_id=self.registration_id,
104   - data="You have flashcards to study!"
  104 + data={'poop': 'data'}
105 105 )
106 106 self.last_notified = now()
107 107 self.save()