ernestophone.ens.fr/partitions/migrations/0001_initial.py

25 lines
625 B
Python
Raw Normal View History

2015-03-17 19:03:51 +01:00
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Partition',
fields=[
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
('nom', models.CharField(max_length=100)),
('part', models.FileField(upload_to='partitions/')),
],
options={
},
bases=(models.Model,),
),
]