mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| import django.db.models.deletion
 | |
| from django.db import migrations, models
 | |
| 
 | |
| 
 | |
| class Migration(migrations.Migration):
 | |
| 
 | |
|     dependencies = [
 | |
|         ("contenttypes", "0001_initial"),
 | |
|     ]
 | |
| 
 | |
|     operations = [
 | |
|         migrations.CreateModel(
 | |
|             name="Confirmation",
 | |
|             fields=[
 | |
|                 (
 | |
|                     "id",
 | |
|                     models.AutoField(
 | |
|                         verbose_name="ID", serialize=False, auto_created=True, primary_key=True
 | |
|                     ),
 | |
|                 ),
 | |
|                 ("object_id", models.PositiveIntegerField()),
 | |
|                 ("date_sent", models.DateTimeField(verbose_name="sent")),
 | |
|                 (
 | |
|                     "confirmation_key",
 | |
|                     models.CharField(max_length=40, verbose_name="activation key"),
 | |
|                 ),
 | |
|                 (
 | |
|                     "content_type",
 | |
|                     models.ForeignKey(
 | |
|                         on_delete=django.db.models.deletion.CASCADE, to="contenttypes.ContentType"
 | |
|                     ),
 | |
|                 ),
 | |
|             ],
 | |
|             options={
 | |
|                 "verbose_name": "confirmation email",
 | |
|                 "verbose_name_plural": "confirmation emails",
 | |
|             },
 | |
|             bases=(models.Model,),
 | |
|         ),
 | |
|     ]
 |