-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from axnsan12/fix/callable-default
Fix callable default handling
- Loading branch information
Showing
18 changed files
with
300 additions
and
122 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
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
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 |
---|---|---|
@@ -1,26 +1,30 @@ | ||
# Generated by Django 2.0 on 2017-12-05 04:05 | ||
# Generated by Django 2.0 on 2017-12-23 09:07 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Article', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('title', models.CharField(help_text='Main article headline', max_length=255, unique=True)), | ||
('body', models.TextField(help_text='Article content', max_length=5000)), | ||
('slug', models.SlugField(blank=True, help_text='Unique URL slug identifying the article', unique=True)), | ||
('title', models.CharField(help_text='title model help_text', max_length=255, unique=True)), | ||
('body', models.TextField(help_text='article model help_text', max_length=5000)), | ||
('slug', models.SlugField(blank=True, help_text='slug model help_text', unique=True)), | ||
('date_created', models.DateTimeField(auto_now_add=True)), | ||
('date_modified', models.DateTimeField(auto_now=True)), | ||
('cover', models.ImageField(blank=True, upload_to='article/original/')), | ||
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='articles', to=settings.AUTH_USER_MODEL)), | ||
], | ||
), | ||
] |
Oops, something went wrong.