0003_documenttemplate.py 940 B

12345678910111213141516171819202122232425262728
  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import models, migrations
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('contenttypes', '0002_remove_content_type_name'),
  7. ('rapid', '0002_auto_20150918_1921'),
  8. ]
  9. operations = [
  10. migrations.CreateModel(
  11. name='DocumentTemplate',
  12. fields=[
  13. ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
  14. ('name', models.CharField(max_length=60, verbose_name='nome')),
  15. ('template', models.FileField(upload_to=b'rapid/document_templates')),
  16. ('model', models.ForeignKey(to='contenttypes.ContentType')),
  17. ],
  18. options={
  19. 'verbose_name': 'template de documento',
  20. 'verbose_name_plural': 'templates de documento',
  21. },
  22. ),
  23. ]