Files
website-v2/users/migrations/0012_user_can_update_image.py
Lacey Williams Henschel 8db6603814 Allow admin users to disallow other users from updating profile pictures.
- Add field can_update_image to User model and user admin
- Prevent user from updating photo if they field is false
- Add docs
2023-11-08 11:23:40 -08:00

22 lines
640 B
Python

# Generated by Django 4.2.2 on 2023-11-03 17:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0011_alter_user_image"),
]
operations = [
migrations.AddField(
model_name="user",
name="can_update_image",
field=models.BooleanField(
default=True,
help_text="Designates whether the user can update their profile photo. To turn off a user's ability to update their own profile photo, uncheck this box.",
verbose_name="can_update_image",
),
),
]