Commit 559ba14f authored by okhin's avatar okhin 🚴
Browse files

Merge branch...

Merge branch '31-interface-admin-permettre-la-creation-de-contenu-directement-depuis-l-nterface-admin' into 'rp2'

Resolve "Interface admin: Permettre la création de contenu directement depuis l'nterface admin"

Closes #31

See merge request !17
parents 1d0c8743 890ad2be
Pipeline #2511 passed with stages
in 4 minutes and 14 seconds
# -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2019-03-20 11:50
from __future__ import unicode_literals
from django.db import migrations
import django_fsm
class Migration(migrations.Migration):
dependencies = [
('rp', '0018_revert_0017'),
operations = [
field=django_fsm.FSMField(choices=[('NEW', 'New'), ('DRAFT', 'Draft'), ('PUBLISHED', 'Published'), ('REJECTED', 'Rejected')], default='NEW', max_length=50),
......@@ -41,7 +41,9 @@ article content. You should aim at around 500 characters. Use bracket ellipsis
class Article(VoteMixin):
#: Logical state (eg. article submitted, published, or rejected)
status = FSMField(default='NEW', choices=STATUS_CHOICES, protected=True)
# This is unprotected because superuser should be able to change
# the status from the django admin interface
status = FSMField(default='NEW', choices=STATUS_CHOICES)
#: Original URL
url = models.URLField("URL", help_text=URL_HELP_TEXT)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment