Coverage for crateweb/userprofile/migrations/0003_auto_20160628_1301.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.8.0, created at 2025-08-27 10:34 -0500

1""" 

2crate_anon/crateweb/userprofile/migrations/0003_auto_20160628_1301.py 

3 

4=============================================================================== 

5 

6 Copyright (C) 2015, University of Cambridge, Department of Psychiatry. 

7 Created by Rudolf Cardinal (rnc1001@cam.ac.uk). 

8 

9 This file is part of CRATE. 

10 

11 CRATE is free software: you can redistribute it and/or modify 

12 it under the terms of the GNU General Public License as published by 

13 the Free Software Foundation, either version 3 of the License, or 

14 (at your option) any later version. 

15 

16 CRATE is distributed in the hope that it will be useful, 

17 but WITHOUT ANY WARRANTY; without even the implied warranty of 

18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 

19 GNU General Public License for more details. 

20 

21 You should have received a copy of the GNU General Public License 

22 along with CRATE. If not, see <https://www.gnu.org/licenses/>. 

23 

24=============================================================================== 

25 

26**Userprofile app, migration 0003.** 

27 

28""" 

29 

30# Generated by Django 1.9.7 on 2016-06-28 13:01 

31from __future__ import unicode_literals 

32 

33from django.db import migrations, models 

34 

35 

36class Migration(migrations.Migration): 

37 

38 dependencies = [ 

39 ("userprofile", "0002_userprofile_sql_scratchpad"), 

40 ] 

41 

42 operations = [ 

43 migrations.RenameField( 

44 model_name="userprofile", 

45 old_name="collapse_at", 

46 new_name="collapse_at_len", 

47 ), 

48 migrations.AddField( 

49 model_name="userprofile", 

50 name="collapse_at_n_lines", 

51 field=models.PositiveSmallIntegerField( 

52 default=5, 

53 verbose_name=( 

54 "Number of lines beyond which result/query field starts" 

55 " collapsed (0 for none)" 

56 ), 

57 ), 

58 ), 

59 ]