Skip to content
Snippets Groups Projects
Commit 9bfdb70f authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Removed created and last_updated

parent da167048
No related branches found
No related tags found
No related merge requests found
# Generated by Django 3.2.11 on 2022-02-21 15:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('program', '0013_auto_20220221_1637'),
]
operations = [
migrations.RemoveField(
model_name='note',
name='created',
),
migrations.RemoveField(
model_name='note',
name='last_updated',
),
migrations.RemoveField(
model_name='schedule',
name='created',
),
migrations.RemoveField(
model_name='schedule',
name='last_updated',
),
migrations.RemoveField(
model_name='show',
name='created',
),
migrations.RemoveField(
model_name='show',
name='last_updated',
),
]
......@@ -160,8 +160,6 @@ class Show(models.Model):
website = models.URLField(blank=True, null=True)
cba_series_id = models.IntegerField(blank=True, null=True)
default_playlist_id = models.IntegerField(blank=True, null=True)
created = models.DateTimeField(auto_now_add=True, editable=False)
last_updated = models.DateTimeField(auto_now=True, editable=False)
is_active = models.BooleanField(default=True)
is_public = models.BooleanField(default=False)
......@@ -205,8 +203,6 @@ class Schedule(models.Model):
add_days_no = models.IntegerField(blank=True, null=True)
add_business_days_only = models.BooleanField(default=False)
default_playlist_id = models.IntegerField(blank=True, null=True)
created = models.DateTimeField(auto_now_add=True, editable=False, null=True)
last_updated = models.DateTimeField(auto_now=True, editable=False, null=True)
class Meta:
ordering = ('dstart', 'tstart')
......@@ -918,8 +914,6 @@ class Note(models.Model):
show = models.ForeignKey(Show, on_delete=models.CASCADE, related_name='notes', editable=True)
cba_id = models.IntegerField(blank=True, null=True)
audio_url = models.TextField(blank=True, editable=False)
created = models.DateTimeField(auto_now_add=True, editable=False)
last_updated = models.DateTimeField(auto_now=True, editable=False)
user = models.ForeignKey(User, editable=False, on_delete=models.CASCADE, related_name='users', default=1)
host = models.ForeignKey(Host, on_delete=models.CASCADE, related_name='hosts', null=True)
......
......@@ -231,7 +231,7 @@ class ShowSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Show
fields = ('id', 'name', 'slug', 'image', 'ppoi', 'logo', 'short_description', 'description',
'email', 'website', 'created', 'last_updated', 'type', 'fundingcategory',
'email', 'website', 'type', 'fundingcategory',
'predecessor', 'cba_series_id', 'default_playlist_id', 'category', 'hosts',
'owners', 'language', 'topic', 'musicfocus', 'thumbnails', 'is_active', 'is_public')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment