zulip/zerver/migrations
vaibhav 75bf501553 Add optional waiting period for users to create streams.
This adds support for only allowing normal users with account age
equal or greater than a "waiting period" threshold to create streams;
this is useful for open organizations that want new members to
understand the community before creating streams.

If create_stream_by_admins_only setting is set to True, only admin users
were able to create streams. Now normal users with account age greater
or equal than waiting period threshold can also create streams.

Account age is defined as number of days passed since the user had
created his account.

Fixes: #2308.

Tweaked by tabbott to clean up the actual can_create_streams logic and
the tests.
2016-12-15 16:54:30 -08:00
..
0001_initial.py zerver/migrations: Squash an AlterField from 0002 into 0001. 2016-07-06 11:40:12 -07:00
0002_django_1_8.py zerver/migrations: Squash an AlterField from 0002 into 0001. 2016-07-06 11:40:12 -07:00
0003_custom_indexes.py Add remaining custom indexes that were created by South migrations 2015-08-23 21:47:12 -07:00
0004_userprofile_left_side_userlist.py Add UserProfile flag to control whether we have a left side userlist. 2015-09-19 23:22:59 -07:00
0005_auto_20150920_1340.py Move API super users configuration into the database. 2015-09-20 11:13:20 -07:00
0006_zerver_userprofile_email_upper_idx.py Add case-insensitive index on UserProfile.email. 2016-01-09 20:01:37 -08:00
0007_userprofile_is_bot_active_indexes.py Add UserProfile indexes on is_active and is_bot. 2016-01-09 20:01:37 -08:00
0008_preregistrationuser_upper_email_idx.py Add case-insensitive index on PreregistrationUser.email. 2016-01-09 20:01:37 -08:00
0009_add_missing_migrations.py Add missing migrations present in models.py. 2016-01-26 20:38:46 -08:00
0010_delete_streamcolor.py Delete unused old StreamColor model. 2016-04-08 13:06:04 -07:00
0011_remove_guardian.py Annotate zerver.migrations. 2016-06-28 16:38:33 -07:00
0012_remove_appledevicetoken.py Remove obsolete AppleDeviceToken model. 2016-04-20 21:51:52 -07:00
0013_realmemoji.py Replace bytes by strings in zerver migrations 2, 13, 18. 2016-07-04 12:08:37 -07:00
0014_realm_emoji_url_length.py Increase maximum URL length for RealmEmoji to 1000. 2016-05-02 19:02:56 -07:00
0015_attachment.py Add Attachment model to keep track of uploads. 2016-05-02 22:14:47 -07:00
0016_realm_create_stream_by_admins_only.py Add setting to only allow admins create new streams. 2016-05-18 18:53:13 -07:00
0017_userprofile_bot_type.py Add bot_type field to UserProfile. 2016-05-19 22:37:37 -07:00
0018_realm_emoji_message.py Replace bytes by strings in zerver migrations 2, 13, 18. 2016-07-04 12:08:37 -07:00
0019_preregistrationuser_realm_creation.py Add interface for creating new realms. 2016-06-17 16:15:28 -07:00
0020_add_tracking_attachment.py Modify Attachment model to track file access permissions. 2016-06-23 17:46:16 -07:00
0021_migrate_attachment_data.py Annotate zerver.migrations. 2016-06-28 16:38:33 -07:00
0022_subscription_pin_to_top.py Add ability to pin streams to top of the streams sidebar list. 2016-06-30 22:26:09 -07:00
0023_userprofile_default_language.py Change all default values in models to unicode. 2016-07-11 21:30:32 -07:00
0024_realm_allow_message_editing.py Add realm setting to disable message editing. 2016-07-10 11:57:24 -07:00
0025_realm_message_content_edit_limit.py Add realm setting to time-limit editing of message content. 2016-07-15 13:55:49 -07:00
0026_delete_mituser.py Remove old MitUser model and related code. 2016-07-26 20:30:12 -07:00
0027_realm_default_language.py Add realm-level default language setting. 2016-08-09 17:38:29 -07:00
0028_userprofile_tos_version.py Terms of Service: Fix corner cases around new users being created. 2016-08-13 00:19:54 -07:00
0029_realm_subdomain.py Add option for hosting each realm on its own subdomain. 2016-09-27 23:24:14 -07:00
0030_realm_org_type.py Add new organization type field to Realm objects. 2016-10-05 17:01:46 -07:00
0031_remove_system_avatar_source.py Add migration to remove system avatar source. 2016-10-22 20:07:21 -07:00
0032_verify_all_medium_avatar_images.py Add medium size avatars for use on the user's own settings page. 2016-10-25 09:42:14 -07:00
0033_migrate_domain_to_realmalias.py Create RealmAlias entries for Realm.domain. 2016-10-25 10:06:39 -07:00
0034_userprofile_enable_online_push_notifications.py Add user setting option to always send push notifications. 2016-10-25 10:52:29 -07:00
0035_realm_message_retention_period_days.py retention-policy: Add tool to determine expired messages. 2016-10-25 15:38:08 -07:00
0036_rename_subdomain_to_string_id.py models.Realm: Rename subdomain to string_id. 2016-11-02 22:46:34 -07:00
0037_disallow_null_string_id.py models.Realm: Require Realm.string_id to be non-NULL. 2016-11-02 22:46:34 -07:00
0038_realm_change_to_community_defaults.py Change Realm defaults to Community defaults. 2016-11-03 13:53:01 -07:00
0039_realmalias_drop_uniqueness.py RealmAlias: Drop uniqueness constraint when REALMS_HAVE_SUBDOMAINS. 2016-11-03 13:53:01 -07:00
0040_realm_authentication_methods.py auth: Make supported authentication backends a bitfield on realm. 2016-11-06 16:16:24 -08:00
0041_create_attachments_for_old_messages.py Add migration to create attachments for old uploads. 2016-11-10 12:14:08 -08:00
0042_attachment_file_name_length.py attachment: Remove DB limit on length of filenames. 2016-11-15 21:12:05 -08:00
0043_realm_filter_validators.py Add initial implementation of custom realm filters. 2016-11-17 17:11:25 -08:00
0044_reaction.py Add backend support for emoji reactions. 2016-11-26 18:10:21 -08:00
0045_realm_waiting_period_threshold.py Add optional waiting period for users to create streams. 2016-12-15 16:54:30 -08:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00