Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1b0485e

Browse filesBrowse files
committed
Create migration for the section model
1 parent 2097024 commit 1b0485e
Copy full SHA for 1b0485e

File tree

Expand file treeCollapse file tree

1 file changed

+27
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+27
-0
lines changed
Open diff view settings
Collapse file

‎landing/migrations/0003_section.py‎

Copy file name to clipboard
+27Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Generated by Django 2.2.18 on 2021-04-19 14:28
2+
3+
import ckeditor.fields
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('landing', '0002_event_is_removed'),
11+
]
12+
13+
operations = [
14+
migrations.CreateModel(
15+
name='Section',
16+
fields=[
17+
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
18+
('is_removed', models.BooleanField(default=False)),
19+
('name', models.CharField(max_length=255)),
20+
('content', ckeditor.fields.RichTextField()),
21+
('order', models.PositiveIntegerField(default=0)),
22+
],
23+
options={
24+
'ordering': ['order'],
25+
},
26+
),
27+
]

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.