Upload document
This commit is contained in:
parent
30550d3066
commit
9f0e515f4e
12 changed files with 341 additions and 90 deletions
28
cms/migrations/0002_auto_20170419_1333.py
Normal file
28
cms/migrations/0002_auto_20170419_1333.py
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.4 on 2017-04-19 11:33
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('cms', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Upload',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('docfile', models.FileField(upload_to='doc/')),
|
||||
('titre', models.CharField(max_length=100)),
|
||||
('published', models.BooleanField(default=False)),
|
||||
],
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='document',
|
||||
name='docfile',
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue