mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 14:03:30 +00:00 
			
		
		
		
	In Django 2.1, the preferred way to express a nullable BooleanField changed from NullBooleanField to passing null=True to BooleanField. This updates our codebase to use the preferred API. Tweaked by tabbott to update the linter rules. The migration is a noop for Django accounting only. Part of #11341.
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
# Generated by Django 2.2.12 on 2020-04-26 17:53
 | 
						|
 | 
						|
from django.db import migrations, models
 | 
						|
 | 
						|
 | 
						|
class Migration(migrations.Migration):
 | 
						|
 | 
						|
    dependencies = [
 | 
						|
        ('zerver', '0273_migrate_old_bot_messages'),
 | 
						|
    ]
 | 
						|
 | 
						|
    operations = [
 | 
						|
        migrations.AlterField(
 | 
						|
            model_name='stream',
 | 
						|
            name='invite_only',
 | 
						|
            field=models.BooleanField(default=False, null=True),
 | 
						|
        ),
 | 
						|
        migrations.AlterField(
 | 
						|
            model_name='subscription',
 | 
						|
            name='audible_notifications',
 | 
						|
            field=models.BooleanField(default=None, null=True),
 | 
						|
        ),
 | 
						|
        migrations.AlterField(
 | 
						|
            model_name='subscription',
 | 
						|
            name='desktop_notifications',
 | 
						|
            field=models.BooleanField(default=None, null=True),
 | 
						|
        ),
 | 
						|
        migrations.AlterField(
 | 
						|
            model_name='subscription',
 | 
						|
            name='email_notifications',
 | 
						|
            field=models.BooleanField(default=None, null=True),
 | 
						|
        ),
 | 
						|
        migrations.AlterField(
 | 
						|
            model_name='subscription',
 | 
						|
            name='is_muted',
 | 
						|
            field=models.BooleanField(default=False, null=True),
 | 
						|
        ),
 | 
						|
        migrations.AlterField(
 | 
						|
            model_name='subscription',
 | 
						|
            name='push_notifications',
 | 
						|
            field=models.BooleanField(default=None, null=True),
 | 
						|
        ),
 | 
						|
        migrations.AlterField(
 | 
						|
            model_name='subscription',
 | 
						|
            name='wildcard_mentions_notify',
 | 
						|
            field=models.BooleanField(default=None, null=True),
 | 
						|
        ),
 | 
						|
        migrations.AlterField(
 | 
						|
            model_name='userprofile',
 | 
						|
            name='enter_sends',
 | 
						|
            field=models.BooleanField(default=False, null=True),
 | 
						|
        ),
 | 
						|
    ]
 |