class Migration(migrations.Migration): dependencies = [ ('activities', '0061_auto_20170115_1440'), ] operations = [ migrations.AlterField( model_name='activitiespost', name='image', field=models.ImageField( null=True, upload_to=activities.models.activitiespost_image_upload), ), ]
class Migration(migrations.Migration): dependencies = [ ('cms', '0022_auto_20180620_1551'), ('activities', '0001_initial'), ] operations = [ migrations.CreateModel( name='RegionsPluginModel', fields=[ ('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='activities_regionspluginmodel', serialize=False, to='cms.CMSPlugin')), ('per_row', models.IntegerField(default=3, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(4)], verbose_name='Number of Items per Row')), ], options={ 'abstract': False, }, bases=('cms.cmsplugin',), ), migrations.AddField( model_name='featuredactivities', name='per_row', field=models.IntegerField(default=3, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(4)], verbose_name='Number of Items per Row'), ), migrations.AddField( model_name='latestactivities', name='per_row', field=models.IntegerField(default=3, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(4)], verbose_name='Number of Items per Row'), ), migrations.AddField( model_name='region', name='image', field=models.ImageField(blank=True, help_text='Image to display in region widget.', upload_to=activities.models.get_region_image_filename), ), migrations.AddField( model_name='regionspluginmodel', name='regions', field=models.ManyToManyField(to='activities.Region'), ), ]
class Migration(migrations.Migration): dependencies = [ ('activities', '0011_activity_activity_type'), ] operations = [ migrations.RemoveField( model_name='activity', name='created_time', ), migrations.AddField( model_name='activity', name='activity_img', field=models.ImageField(blank=True, upload_to=activities.models.image_directory_path), ), migrations.AlterField( model_name='activity', name='name', field=models.CharField(max_length=150), ), ]
class Migration(migrations.Migration): dependencies = [ ('activities', '0014_auto_20171206_1944'), ] operations = [ migrations.CreateModel( name='ActivityDraft', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=150)), ('location', models.CharField(blank=True, max_length=150)), ('contact_number', models.CharField(blank=True, max_length=15)), ('description', models.CharField(blank=True, max_length=150)), ('start_date', models.DateField(blank=True)), ('end_date', models.DateField(blank=True)), ('start_time', models.TimeField(blank=True, default=datetime.datetime.now)), ('end_time', models.TimeField(blank=True, default=datetime.datetime.now)), ('activity_img', models.ImageField(blank=True, upload_to=activities.models.image_directory_path)), ('activity_type', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='activity_drafts', to='activities.ActivityType')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('cms', '0022_auto_20180620_1551'), ('users', '0001_initial'), ] operations = [ migrations.CreateModel( name='Activity', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(help_text='Insert a name for your activity', max_length=255, verbose_name='title')), ('slug', autoslug.fields.AutoSlugField(always_update=True, editable=False, populate_from='title')), ('description', models.TextField(help_text='Describe the activity. (Max. 400 characters)', max_length=400, verbose_name='description')), ('highlights', models.TextField(help_text='List what makes this activity unique. (Max. 400 characters) \nPlease insert each highlight per line.', max_length=400, verbose_name='highlights')), ('requirements', models.TextField(blank=True, help_text='List all the requirements that you expect from participants. (e.g. age restrictions, required skills etc) \nPlease insert each requirement per line.', max_length=400, verbose_name='requirements')), ('address', models.CharField(help_text='Enter a meeting place for the activity', max_length=255, verbose_name='meeting place')), ('latitude', models.DecimalField(blank=True, decimal_places=6, default=21.307, max_digits=9, null=True, verbose_name='latitude')), ('longitude', models.DecimalField(blank=True, decimal_places=6, default=-157.858, max_digits=9, null=True, verbose_name='longitude')), ('price', models.DecimalField(blank=True, decimal_places=2, default=0.0, help_text="Cost of participation.\nIf it's free, then leave it as 0.00 or blank", max_digits=6, validators=[django.core.validators.MinValueValidator(0.0)], verbose_name='price')), ('featured_photo', models.ImageField(default='defaults/default_region.jpg', help_text='This photo will be featured on listings and the topof your activity page.', upload_to=activities.models.get_featured_image_filename, verbose_name='featured photo')), ('fh_item_id', models.PositiveIntegerField(blank=True, default=None, help_text='This is the FareHarbor item for your activity.', null=True, verbose_name='fareharbor item id')), ('status', model_utils.fields.StatusField(choices=[('unapproved', 'unapproved'), ('approved', 'approved')], default='unapproved', max_length=100, no_check_for_status=True)), ('approved_time', model_utils.fields.MonitorField(default=django.utils.timezone.now, monitor='status', when={'approved'})), ('created', models.DateTimeField(auto_now_add=True)), ('modified', models.DateTimeField(auto_now=True)), ('is_featured', models.IntegerField(blank=True, default=0, verbose_name='is featured')), ('review_count', models.IntegerField(blank=True, default=0, verbose_name='review count')), ], options={ 'verbose_name': 'activity', 'verbose_name_plural': 'activities', }, ), migrations.CreateModel( name='ActivityPhoto', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file', models.ImageField(upload_to=activities.models.get_photo_image_filename, verbose_name='Photo')), ('activity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='photos', to='activities.Activity')), ], ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=60, unique=True, verbose_name='activity category')), ('slug', models.SlugField(max_length=20, unique=True)), ('font_awesome', models.CharField(blank=True, help_text='This will display an icon next to a tag. Format: fa-(icon name)', max_length=60, verbose_name='category icon')), ], options={ 'verbose_name': 'category', 'verbose_name_plural': 'categories', 'ordering': ['name'], }, ), migrations.CreateModel( name='FeaturedActivities', fields=[ ('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='activities_featuredactivities', serialize=False, to='cms.CMSPlugin')), ('number_of_activities', models.IntegerField(default=5, help_text='The maximum number of featured activities to display')), ], options={ 'abstract': False, }, bases=('cms.cmsplugin',), ), migrations.CreateModel( name='LatestActivities', fields=[ ('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='activities_latestactivities', serialize=False, to='cms.CMSPlugin')), ('latest_activities', models.IntegerField(default=5, help_text='The maximum number of latest activities to display')), ], options={ 'abstract': False, }, bases=('cms.cmsplugin',), ), migrations.CreateModel( name='Region', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=60)), ('slug', models.SlugField(max_length=20, unique=True)), ], options={ 'ordering': ['name'], }, ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=60, unique=True)), ('slug', models.SlugField(max_length=20, unique=True)), ('font_awesome', models.CharField(blank=True, help_text='This will display an icon next to a tag. Format: fa-(icon name)', max_length=60, verbose_name='tag icon')), ], options={ 'ordering': ['name'], }, ), migrations.AddField( model_name='activity', name='categories', field=models.ManyToManyField(help_text='Select categories the best fits your activity.', to='activities.Category', verbose_name='categories'), ), migrations.AddField( model_name='activity', name='host', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='host', to='users.Host'), ), migrations.AddField( model_name='activity', name='region', field=models.ForeignKey(help_text='Choose a region where you activity will be held.', on_delete=django.db.models.deletion.CASCADE, related_name='activities', related_query_name='activity', to='activities.Region', verbose_name='region'), ), migrations.AddField( model_name='activity', name='tags', field=models.ManyToManyField(blank=True, help_text='Select tag(s) that best describe your activity.', to='activities.Tag', verbose_name='tags'), ), ]
class Migration(migrations.Migration): dependencies = [ ('activities', '0019_auto_20171214_1519'), ] operations = [ migrations.AddField( model_name='activity', name='activity_date', field=models.DateField(blank=True, null=True), ), migrations.AddField( model_name='activity', name='activity_day', field=models.CharField(blank=True, choices=[('Monday', 'Monday'), ('Tuesday', 'Tuesday'), ('Wednesday', 'Wednesday'), ('Thursday', 'Thursday'), ('Friday', 'Friday'), ('Saturday', 'Saturday'), ('Sunday', 'Sunday')], default='Monday', max_length=50), ), migrations.AddField( model_name='activity', name='term', field=models.CharField(blank=True, choices=[('Once', 'Only once'), ('Daily', 'Daily'), ('Weekly', 'Weekly'), ('Fortnightly', 'Fortnightly'), ('Monthly', 'Monthly')], default='Once', max_length=50), ), migrations.AlterField( model_name='activity', name='activity_img', field=models.ImageField(blank=True, null=True, upload_to=activities.models.image_directory_path), ), migrations.AlterField( model_name='activity', name='contact_number', field=models.CharField(blank=True, max_length=15, null=True), ), migrations.AlterField( model_name='activity', name='description', field=models.TextField(blank=True, max_length=150, null=True), ), migrations.AlterField( model_name='activity', name='end_date', field=models.DateField(blank=True, null=True), ), migrations.AlterField( model_name='activity', name='end_time', field=models.TimeField(blank=True, default=datetime.datetime.now, null=True), ), migrations.AlterField( model_name='activity', name='flyer', field=models.FileField(blank=True, null=True, upload_to=activities.models.file_directory_path), ), migrations.AlterField( model_name='activity', name='location', field=models.CharField(blank=True, max_length=150, null=True), ), migrations.AlterField( model_name='activity', name='organiser', field=models.CharField(blank=True, max_length=150, null=True), ), migrations.AlterField( model_name='activity', name='start_date', field=models.DateField(blank=True, null=True), ), migrations.AlterField( model_name='activity', name='start_time', field=models.TimeField(blank=True, default=datetime.datetime.now, null=True), ), migrations.AlterField( model_name='activitydraft', name='activity_img', field=models.ImageField(blank=True, null=True, upload_to=activities.models.image_directory_path), ), migrations.AlterField( model_name='activitydraft', name='contact_number', field=models.CharField(blank=True, max_length=15, null=True), ), migrations.AlterField( model_name='activitydraft', name='description', field=models.TextField(blank=True, max_length=150, null=True), ), migrations.AlterField( model_name='activitydraft', name='end_time', field=models.TimeField(blank=True, default=datetime.datetime.now, null=True), ), migrations.AlterField( model_name='activitydraft', name='flyer', field=models.FileField(blank=True, null=True, upload_to=activities.models.file_directory_path), ), migrations.AlterField( model_name='activitydraft', name='location', field=models.CharField(blank=True, max_length=150, null=True), ), migrations.AlterField( model_name='activitydraft', name='organiser', field=models.CharField(blank=True, max_length=150, null=True), ), migrations.AlterField( model_name='activitydraft', name='start_time', field=models.TimeField(blank=True, default=datetime.datetime.now, null=True), ), ]
class Migration(migrations.Migration): dependencies = [ ('activities', '0002_auto_20190418_0120'), ] operations = [ migrations.AddField( model_name='featuredactivities', name='featured_tier', field=models.PositiveIntegerField( default=3, help_text= 'Activity with tiers higher than this number will be featured in the widget.', validators=[django.core.validators.MaxValueValidator(5)], verbose_name='Featured Tier'), ), migrations.AlterField( model_name='activity', name='featured_photo', field=sorl.thumbnail.fields.ImageField( blank=True, help_text= 'This photo will be featured on listings and the topof your activity page.', null=True, upload_to=activities.models.get_featured_image_filename, validators=[activities.validators.validate_image_size], verbose_name='featured photo'), ), migrations.AlterField( model_name='activity', name='is_featured', field=models.PositiveIntegerField( default=0, help_text= 'Each featured tier will determine if the activity will be featured in certain areas on the website.', validators=[django.core.validators.MaxValueValidator(5)], verbose_name='featured tier'), ), migrations.AlterField( model_name='activity', name='review_count', field=models.IntegerField(default=0, verbose_name='review count'), ), migrations.AlterField( model_name='activityphoto', name='file', field=models.ImageField( upload_to=activities.models.get_photo_image_filename, validators=[activities.validators.validate_image_size], verbose_name='Photo'), ), migrations.AlterField( model_name='featuredactivities', name='number_of_activities', field=models.IntegerField( default=5, help_text= 'The maximum number of featured activities to display.'), ), migrations.AlterField( model_name='featuredactivities', name='per_row', field=models.IntegerField( default=3, help_text='Number of activities per row.', validators=[ django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(4) ], verbose_name='Number of Items per Row'), ), migrations.AlterField( model_name='latestactivities', name='latest_activities', field=models.IntegerField( default=5, help_text= 'The maximum number of latest activities to display. Insert "0" to show all' ), ), migrations.AlterField( model_name='latestactivities', name='per_row', field=models.IntegerField( default=3, help_text='Number of activities per row.', validators=[ django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(4) ], verbose_name='Number of Items per Row'), ), migrations.AlterField( model_name='region', name='image', field=sorl.thumbnail.fields.ImageField( blank=True, help_text='Image to display in region widget.', upload_to=activities.models.get_region_image_filename, validators=[activities.validators.validate_image_size]), ), ]