mirror of
https://github.com/boostorg/website-v2.git
synced 2026-01-19 04:42:17 +00:00
- Add field can_update_image to User model and user admin - Prevent user from updating photo if they field is false - Add docs
22 lines
640 B
Python
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",
|
|
),
|
|
),
|
|
]
|