Skip to content

Commit

Permalink
fix issue with is_active
Browse files Browse the repository at this point in the history
  • Loading branch information
SalmanAsh committed Aug 29, 2024
1 parent 7a0f9e1 commit 562a6d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.2.25 on 2024-08-08 10:28
# Generated by Django 3.2.25 on 2024-08-29 10:25

import django.core.validators
from django.db import migrations, models
Expand All @@ -23,6 +23,7 @@ class Migration(migrations.Migration):
('html_url', models.TextField(verbose_name='html url')),
('avatar_url', models.TextField(verbose_name='avatar url')),
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
('is_active', models.BooleanField(default=True, verbose_name='is active')),
],
options={
'verbose_name': 'contributor',
Expand Down
1 change: 1 addition & 0 deletions api/models/contributor.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Contributor(models.Model):
html_url = models.TextField(_("html url"))
avatar_url = models.TextField(_("avatar url"))
last_login = models.DateTimeField(_("last login"), blank=True, null=True)
is_active = models.BooleanField(_("is active"), default=True)

class Meta(TypedModelMeta):
verbose_name = _("contributor")
Expand Down

0 comments on commit 562a6d1

Please sign in to comment.