-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Extend site_profile model and add api. * Add model tests. * Add site_video model. * Add unit tests, not all are passing. * Passing unit tests. * Refactor. * Fix typo. * Update admin and added more error handling to api.
- Loading branch information
Showing
8 changed files
with
439 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
refinery/core/migrations/0029_extend_site_profile_and_add_site_video.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0028_auto_20180611_1640'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='SiteVideo', | ||
fields=[ | ||
('id', models.AutoField(verbose_name='ID', serialize=False, | ||
auto_created=True, primary_key=True)), | ||
('caption', models.TextField(blank=True)), | ||
('source', models.CharField(max_length=100, blank=True)), | ||
('source_id', models.CharField(max_length=100)), | ||
], | ||
), | ||
migrations.AddField( | ||
model_name='siteprofile', | ||
name='about_markdown', | ||
field=models.TextField(blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='siteprofile', | ||
name='intro_markdown', | ||
field=models.TextField(blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='siteprofile', | ||
name='twitter_username', | ||
field=models.CharField(max_length=100, blank=True), | ||
), | ||
migrations.AddField( | ||
model_name='sitevideo', | ||
name='site_profile', | ||
field=models.ForeignKey(to='core.SiteProfile'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.