Skip to content

Commit

Permalink
Merge pull request #1170 from toladata/bugfix/TOLA-471
Browse files Browse the repository at this point in the history
TOLA-471:- Add created_by Field on Dashboard Model
  • Loading branch information
Arlus authored Feb 27, 2019
2 parents f55c645 + 0320308 commit 0678362
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
20 changes: 20 additions & 0 deletions workflow/migrations/0034_dashboard_tola_user_uuid.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-02-27 05:11
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('workflow', '0033_auto_20190213_0302'),
]

operations = [
migrations.AddField(
model_name='dashboard',
name='tola_user_uuid',
field=models.CharField(blank=True, max_length=255, null=True, verbose_name='TolaUser UUID'),
),
]
20 changes: 20 additions & 0 deletions workflow/migrations/0035_auto_20190226_2147.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-02-27 05:47
from __future__ import unicode_literals

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('workflow', '0034_dashboard_tola_user_uuid'),
]

operations = [
migrations.RenameField(
model_name='dashboard',
old_name='tola_user_uuid',
new_name='created_by',
),
]
16 changes: 16 additions & 0 deletions workflow/migrations/0036_merge_20190226_2343.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-02-27 07:43
from __future__ import unicode_literals

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('workflow', '0035_auto_20190226_2147'),
('workflow', '0034_office_organization'),
]

operations = [
]
2 changes: 2 additions & 0 deletions workflow/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,8 @@ def save(self, *args, **kwargs):
class Dashboard(models.Model):
dashboard_uuid = models.UUIDField(editable=False, verbose_name='Dashboard UUID', default=uuid.uuid4, unique=True)
user = models.ForeignKey(TolaUser, related_name='toladashboard')
# naming this with suffix _uuid interfears with public token generation
created_by = models.CharField(max_length=255, verbose_name='TolaUser UUID', null=True, blank=True)
name = models.CharField(blank=True, null=True, max_length=255)
widgets = models.ManyToManyField(Widget, blank=True)
share = models.ManyToManyField(TolaUser, blank=True)
Expand Down

0 comments on commit 0678362

Please sign in to comment.