Skip to content

Commit

Permalink
Add field Group.description
Browse files Browse the repository at this point in the history
  • Loading branch information
tizot committed Feb 8, 2016
1 parent 93d81a3 commit 4635323
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions sigma_core/migrations/0019_group_description.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-02-08 10:22
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('sigma_core', '0018_auto_20160205_1615'),
]

operations = [
migrations.AddField(
model_name='group',
name='description',
field=models.TextField(blank=True),
),
]
1 change: 1 addition & 0 deletions sigma_core/models/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Group(models.Model):
name = models.CharField(max_length=254)
private = models.BooleanField(default=False)
type = models.CharField(max_length=64, choices=TYPE_CHOICES, default=TYPE_BASIC)
description = models.TextField(blank=True)

# The school responsible of the group in case of admin conflict (can be null for non-school-related groups)
resp_school = models.ForeignKey('School', null=True, blank=True, on_delete=models.SET_NULL)
Expand Down

0 comments on commit 4635323

Please sign in to comment.