A simple ticketing application written in Python/Django
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

0001_initial.py 3.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import models, migrations
  4. import main.models
  5. import django.utils.timezone
  6. from django.conf import settings
  7. class Migration(migrations.Migration):
  8. dependencies = [
  9. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  10. ]
  11. operations = [
  12. migrations.CreateModel(
  13. name='Attachment',
  14. fields=[
  15. ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
  16. ('file', models.FileField(upload_to=main.models.attachment_path, max_length=1000, verbose_name=b'File')),
  17. ('filename', models.CharField(max_length=1000, verbose_name=b'Filename')),
  18. ('created', models.DateTimeField(auto_now_add=True)),
  19. ],
  20. options={
  21. 'verbose_name': 'Attachment',
  22. 'verbose_name_plural': 'Attachments',
  23. },
  24. ),
  25. migrations.CreateModel(
  26. name='FollowUp',
  27. fields=[
  28. ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
  29. ('date', models.DateTimeField(default=django.utils.timezone.now, verbose_name=b'Date')),
  30. ('title', models.CharField(max_length=200, verbose_name=b'Title')),
  31. ('text', models.TextField(null=True, verbose_name=b'Text', blank=True)),
  32. ('created', models.DateTimeField(auto_now_add=True)),
  33. ('modified', models.DateTimeField(auto_now=True)),
  34. ],
  35. options={
  36. 'ordering': ['-modified'],
  37. },
  38. ),
  39. migrations.CreateModel(
  40. name='Ticket',
  41. fields=[
  42. ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
  43. ('title', models.CharField(max_length=255, verbose_name=b'Title')),
  44. ('description', models.TextField(null=True, verbose_name=b'Description', blank=True)),
  45. ('status', models.CharField(blank=True, max_length=255, null=True, verbose_name=b'Status', choices=[(b'TODO', b'TODO'), (b'IN PROGRESS', b'IN PROGRESS'), (b'WAITING', b'WAITING'), (b'DONE', b'DONE')])),
  46. ('closed_date', models.DateTimeField(null=True, blank=True)),
  47. ('created', models.DateTimeField(auto_now_add=True)),
  48. ('updated', models.DateTimeField(auto_now=True)),
  49. ('assigned_to', models.ForeignKey(related_name='assigned_to', verbose_name=b'Assigned to', blank=True, to=settings.AUTH_USER_MODEL, null=True)),
  50. ('owner', models.ForeignKey(related_name='owner', verbose_name=b'Owner', blank=True, to=settings.AUTH_USER_MODEL, null=True)),
  51. ('waiting_for', models.ForeignKey(related_name='waiting_for', verbose_name=b'Waiting For', blank=True, to=settings.AUTH_USER_MODEL, null=True)),
  52. ],
  53. ),
  54. migrations.AddField(
  55. model_name='followup',
  56. name='ticket',
  57. field=models.ForeignKey(verbose_name=b'Ticket', to='main.Ticket'),
  58. ),
  59. migrations.AddField(
  60. model_name='followup',
  61. name='user',
  62. field=models.ForeignKey(verbose_name=b'User', blank=True, to=settings.AUTH_USER_MODEL, null=True),
  63. ),
  64. migrations.AddField(
  65. model_name='attachment',
  66. name='ticket',
  67. field=models.ForeignKey(verbose_name=b'Ticket', to='main.Ticket'),
  68. ),
  69. migrations.AddField(
  70. model_name='attachment',
  71. name='user',
  72. field=models.ForeignKey(verbose_name=b'User', blank=True, to=settings.AUTH_USER_MODEL, null=True),
  73. ),
  74. ]