text: # Generated by Django 3.1.2 on 2020-11-28 01:40
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Activity',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.CharField(max_length=200)),
                  ('pub_date', models.DateTimeField(auto_now_add=True, verbose_name='date published')),
                  ('enrolled_users', models.ManyToManyField(blank=True, related_name='activities', to=settings.AUTH_USER_MODEL)),
                  ('entity', models.ForeignKey(limit_choices_to={'groups__name': 'EntidadPublicoPrivada'}, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'verbose_name': 'Actividad',
                  'verbose_name_plural': 'Actividades',
              },
          ),
      ]
  