Skip to content
Snippets Groups Projects
Commit ca0000db authored by jan.bednarik's avatar jan.bednarik
Browse files

User is_author field.

parent 42c28de4
No related branches found
No related tags found
No related merge requests found
# Generated by Django 2.0.1 on 2018-01-27 10:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0003_auto_20180117_0030'),
]
operations = [
migrations.AddField(
model_name='user',
name='is_author',
field=models.BooleanField(default=False),
),
]
...@@ -7,6 +7,7 @@ from django.contrib.postgres.fields import JSONField ...@@ -7,6 +7,7 @@ from django.contrib.postgres.fields import JSONField
class User(AbstractUser): class User(AbstractUser):
openid_uid = models.CharField(max_length=255, unique=True, db_index=True) openid_uid = models.CharField(max_length=255, unique=True, db_index=True)
extra = JSONField(null=True, blank=True) extra = JSONField(null=True, blank=True)
is_author = models.BooleanField(default=False)
class OpenIdClient(models.Model): class OpenIdClient(models.Model):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment