"Fossies" - the Fresh Open Source Software Archive

Member "seahub-7.1.0-pro/seahub/avatar/migrations/0001_initial.py" (30 Dec 2019, 1524 Bytes) of package /linux/www/seahub-7.1.0-pro.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # -*- coding: utf-8 -*-
    2 # Generated by Django 1.11.11 on 2018-03-21 08:42
    3 
    4 
    5 import datetime
    6 from django.db import migrations, models
    7 import seahub.avatar.models
    8 import seahub.base.fields
    9 
   10 
   11 class Migration(migrations.Migration):
   12 
   13     initial = True
   14 
   15     dependencies = [
   16     ]
   17 
   18     operations = [
   19         migrations.CreateModel(
   20             name='Avatar',
   21             fields=[
   22                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
   23                 ('emailuser', seahub.base.fields.LowerCaseCharField(max_length=255)),
   24                 ('primary', models.BooleanField(default=False)),
   25                 ('avatar', models.ImageField(blank=True, max_length=1024, upload_to=seahub.avatar.models.avatar_file_path)),
   26                 ('date_uploaded', models.DateTimeField(default=datetime.datetime.now)),
   27             ],
   28             bases=(models.Model, seahub.avatar.models.AvatarBase),
   29         ),
   30         migrations.CreateModel(
   31             name='GroupAvatar',
   32             fields=[
   33                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
   34                 ('group_id', models.CharField(max_length=255)),
   35                 ('avatar', models.ImageField(blank=True, max_length=1024, upload_to=seahub.avatar.models.avatar_file_path)),
   36                 ('date_uploaded', models.DateTimeField(default=datetime.datetime.now)),
   37             ],
   38             bases=(models.Model, seahub.avatar.models.AvatarBase),
   39         ),
   40     ]