mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	The "Short/Long Text" option for custom profile fields wasn't properly capitalized (i.e. "Text" should have been all lowercase), and also wasn't properly tagged for translation. For the sake of consistency, the change to proper capitalization has also been applied to the models and any tests involving this feature. Due to a bug in Django, it complained about the models having changed and thus not being consistent with the migrations. That isn't actually true (since the database stores the numeric values for each key), but the migrations have been modified to avoid this error. This does not affect the migrations' behaviour in any way.
		
			
				
	
	
		
			21 lines
		
	
	
		
			572 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			572 B
		
	
	
	
		
			Python
		
	
	
	
	
	
# -*- coding: utf-8 -*-
 | 
						|
# Generated by Django 1.11.11 on 2018-04-29 17:24
 | 
						|
from __future__ import unicode_literals
 | 
						|
 | 
						|
from django.db import migrations, models
 | 
						|
 | 
						|
 | 
						|
class Migration(migrations.Migration):
 | 
						|
 | 
						|
    dependencies = [
 | 
						|
        ('zerver', '0164_stream_history_public_to_subscribers'),
 | 
						|
    ]
 | 
						|
 | 
						|
    operations = [
 | 
						|
        migrations.AlterField(
 | 
						|
            model_name='customprofilefield',
 | 
						|
            name='field_type',
 | 
						|
            field=models.PositiveSmallIntegerField(choices=[(1, 'Short text'), (2, 'Long text'), (4, 'Date'), (3, 'Choice')], default=1),
 | 
						|
        ),
 | 
						|
    ]
 |