"Fossies" - the Fresh Open Source Software Archive

Member "seahub-7.1.0-pro/seahub/admin_log/migrations/0001_initial.py" (30 Dec 2019, 769 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 
    3 
    4 from django.db import migrations, models
    5 import datetime
    6 
    7 
    8 class Migration(migrations.Migration):
    9 
   10     dependencies = [
   11     ]
   12 
   13     operations = [
   14         migrations.CreateModel(
   15             name='AdminLog',
   16             fields=[
   17                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
   18                 ('email', models.EmailField(max_length=254, db_index=True)),
   19                 ('operation', models.CharField(max_length=255, db_index=True)),
   20                 ('detail', models.TextField()),
   21                 ('datetime', models.DateTimeField(default=datetime.datetime.now)),
   22             ],
   23             options={
   24                 'ordering': ['-datetime'],
   25             },
   26         ),
   27     ]