mirror of
https://github.com/fergalmoran/dss.api.git
synced 2025-12-25 02:38:54 +00:00
Notifications fixups
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -16,6 +16,7 @@ dss/celery_settings.py
|
|||||||
dss/devsettings.py
|
dss/devsettings.py
|
||||||
dss.conf
|
dss.conf
|
||||||
dss/debugsettings.py
|
dss/debugsettings.py
|
||||||
|
logs/
|
||||||
mysql
|
mysql
|
||||||
test.py
|
test.py
|
||||||
mysql2pgsql.yml
|
mysql2pgsql.yml
|
||||||
@@ -34,4 +35,4 @@ reload
|
|||||||
reset
|
reset
|
||||||
__krud/
|
__krud/
|
||||||
celerybeat-schedule
|
celerybeat-schedule
|
||||||
private/
|
private/
|
||||||
|
|||||||
@@ -3,13 +3,10 @@ FROM fergalmoran/django
|
|||||||
ADD . /code/
|
ADD . /code/
|
||||||
|
|
||||||
|
|
||||||
RUN mkdir /files/
|
|
||||||
RUN mkdir /files/static
|
RUN mkdir /files/static
|
||||||
RUN mkdir /files/media
|
RUN mkdir /files/media
|
||||||
RUN mkdir /files/cache
|
|
||||||
RUN mkdir /files/cache/mixes
|
RUN mkdir /files/cache/mixes
|
||||||
RUN mkdir /files/cache/waveforms
|
RUN mkdir /files/cache/waveforms
|
||||||
RUN mkdir /files/tmp
|
|
||||||
RUN touch /files/tmp/dss.log
|
RUN touch /files/tmp/dss.log
|
||||||
|
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
|
|||||||
19
spa/migrations/0026_notification_notification_text.py
Normal file
19
spa/migrations/0026_notification_notification_text.py
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import models, migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('spa', '0025_socialaccountlink_provider_data'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='notification',
|
||||||
|
name='notification_text',
|
||||||
|
field=models.CharField(null=True, max_length=2048),
|
||||||
|
),
|
||||||
|
]
|
||||||
19
spa/migrations/0027_auto_20160607_2042.py
Normal file
19
spa/migrations/0027_auto_20160607_2042.py
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import models, migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('spa', '0026_notification_notification_text'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='notification',
|
||||||
|
name='notification_text',
|
||||||
|
field=models.CharField(max_length=2048),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -17,6 +17,7 @@ class Notification(BaseModel):
|
|||||||
type = models.CharField(max_length=200, null=True)
|
type = models.CharField(max_length=200, null=True)
|
||||||
target = models.CharField(max_length=200, null=True)
|
target = models.CharField(max_length=200, null=True)
|
||||||
target_desc = models.CharField(max_length=200, null=True)
|
target_desc = models.CharField(max_length=200, null=True)
|
||||||
|
notification_text = models.CharField(max_length=2048, null=False)
|
||||||
|
|
||||||
accepted_date = models.DateTimeField(null=True)
|
accepted_date = models.DateTimeField(null=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user