This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
forked from buchanae/basket
-
Notifications
You must be signed in to change notification settings - Fork 10
Bug 742951 - changing email address #84
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
82 changes: 82 additions & 0 deletions
82
news/migrations/0008_auto__add_emailchangerequest__add_unique_subscriber_token.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,82 @@ | ||
# -*- coding: utf-8 -*- | ||
import datetime | ||
from south.db import db | ||
from south.v2 import SchemaMigration | ||
from django.db import models | ||
|
||
|
||
class Migration(SchemaMigration): | ||
|
||
def forwards(self, orm): | ||
# Adding model 'EmailChangeRequest' | ||
db.create_table(u'news_emailchangerequest', ( | ||
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), | ||
('when', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), | ||
('subscriber', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['news.Subscriber'])), | ||
('new_email', self.gf('django.db.models.fields.EmailField')(max_length=75)), | ||
('change_key', self.gf('django.db.models.fields.CharField')(default='7138f993-c321-4a22-b5e1-fb21c2d83222', max_length=40, db_index=True)), | ||
)) | ||
db.send_create_signal(u'news', ['EmailChangeRequest']) | ||
|
||
# Adding unique constraint on 'Subscriber', fields ['token'] | ||
db.create_unique(u'news_subscriber', ['token']) | ||
|
||
|
||
def backwards(self, orm): | ||
# Removing unique constraint on 'Subscriber', fields ['token'] | ||
db.delete_unique(u'news_subscriber', ['token']) | ||
|
||
# Deleting model 'EmailChangeRequest' | ||
db.delete_table(u'news_emailchangerequest') | ||
|
||
|
||
models = { | ||
u'news.apiuser': { | ||
'Meta': {'object_name': 'APIUser'}, | ||
'api_key': ('django.db.models.fields.CharField', [], {'default': "'b2eb6e1c-287f-402b-8c32-29f592506896'", 'max_length': '40', 'db_index': 'True'}), | ||
'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}) | ||
}, | ||
u'news.emailchangerequest': { | ||
'Meta': {'object_name': 'EmailChangeRequest'}, | ||
'change_key': ('django.db.models.fields.CharField', [], {'default': "'987558cb-6fdf-4867-b161-8fb2f96ecc78'", 'max_length': '40', 'db_index': 'True'}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'new_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}), | ||
'subscriber': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['news.Subscriber']"}), | ||
'when': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) | ||
}, | ||
u'news.failedtask': { | ||
'Meta': {'object_name': 'FailedTask'}, | ||
'args': ('jsonfield.fields.JSONField', [], {'default': '[]'}), | ||
'einfo': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True'}), | ||
'exc': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True'}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'kwargs': ('jsonfield.fields.JSONField', [], {'default': '{}'}), | ||
'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}), | ||
'task_id': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), | ||
'when': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) | ||
}, | ||
u'news.newsletter': { | ||
'Meta': {'ordering': "['order']", 'object_name': 'Newsletter'}, | ||
'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), | ||
'confirm_message': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}), | ||
'description': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}), | ||
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), | ||
'languages': ('django.db.models.fields.CharField', [], {'max_length': '200'}), | ||
'order': ('django.db.models.fields.IntegerField', [], {'default': '0'}), | ||
'requires_double_optin': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | ||
'show': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), | ||
'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}), | ||
'title': ('django.db.models.fields.CharField', [], {'max_length': '128'}), | ||
'vendor_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}), | ||
'welcome': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}) | ||
}, | ||
u'news.subscriber': { | ||
'Meta': {'object_name': 'Subscriber'}, | ||
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'primary_key': 'True'}), | ||
'token': ('django.db.models.fields.CharField', [], {'default': "'7d86efb8-5356-4d9b-b935-7cdc0f436eb1'", 'unique': 'True', 'max_length': '40', 'db_index': 'True'}) | ||
} | ||
} | ||
|
||
complete_apps = ['news'] |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol