mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	Also adds Confirmation.type, and cleans up the rest of Confirmation to look more like the model definitions in zerver. In the migration, all existing confirmations adopt the type USER_REGISTRATION, to be conservative. In a few commits, different confirmation types will have different validity periods, and USER_REGISTRATION will have the shortest default.
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
# -*- coding: utf-8 -*-
 | 
						|
# Generated by Django 1.11.2 on 2017-07-08 04:23
 | 
						|
from __future__ import unicode_literals
 | 
						|
 | 
						|
from django.db import migrations, models
 | 
						|
 | 
						|
 | 
						|
class Migration(migrations.Migration):
 | 
						|
 | 
						|
    dependencies = [
 | 
						|
        ('confirmation', '0003_emailchangeconfirmation'),
 | 
						|
    ]
 | 
						|
 | 
						|
    operations = [
 | 
						|
        migrations.DeleteModel(
 | 
						|
            name='EmailChangeConfirmation',
 | 
						|
        ),
 | 
						|
        migrations.AlterModelOptions(
 | 
						|
            name='confirmation',
 | 
						|
            options={},
 | 
						|
        ),
 | 
						|
        migrations.AddField(
 | 
						|
            model_name='confirmation',
 | 
						|
            name='type',
 | 
						|
            field=models.PositiveSmallIntegerField(default=1),
 | 
						|
            preserve_default=False,
 | 
						|
        ),
 | 
						|
        migrations.AlterField(
 | 
						|
            model_name='confirmation',
 | 
						|
            name='confirmation_key',
 | 
						|
            field=models.CharField(max_length=40),
 | 
						|
        ),
 | 
						|
        migrations.AlterField(
 | 
						|
            model_name='confirmation',
 | 
						|
            name='date_sent',
 | 
						|
            field=models.DateTimeField(),
 | 
						|
        ),
 | 
						|
    ]
 |