mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-19 00:09:24 +00:00
Add ban for alcohol
This commit is contained in:
19
core/migrations/0005_user_is_banned_alcohol.py
Normal file
19
core/migrations/0005_user_is_banned_alcohol.py
Normal file
@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0004_user_godfathers'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='user',
|
||||
name='is_banned_alcohol',
|
||||
field=models.BooleanField(help_text='Designates whether this user is denyed from buying alchool. ', verbose_name='banned from buying alcohol', default=False),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user