diff --git a/core/models/profiles.py b/core/models/profiles.py index 51d8f92..1709a04 100644 --- a/core/models/profiles.py +++ b/core/models/profiles.py @@ -1,7 +1,7 @@ from polymorphic.models import PolymorphicModel from phonenumber_field.modelfields import PhoneNumberField -from django.db.models import OneToOneField, CASCADE, CharField +from django.db.models import OneToOneField, CASCADE, CharField, ImageField from django.contrib.auth import get_user_model class Profile(PolymorphicModel): @@ -9,4 +9,5 @@ class Profile(PolymorphicModel): mobile = PhoneNumberField(blank=True) class AdminProfile(Profile): - role = CharField(max_length=64) \ No newline at end of file + role = CharField(max_length=64) + image = ImageField(null=True) \ No newline at end of file diff --git a/static/backend/images/avatars/noimage.png b/static/backend/images/avatars/noimage.png new file mode 100644 index 0000000..b14ad43 Binary files /dev/null and b/static/backend/images/avatars/noimage.png differ diff --git a/templates/backend/base.html b/templates/backend/base.html index e37098b..3e98402 100644 --- a/templates/backend/base.html +++ b/templates/backend/base.html @@ -93,7 +93,7 @@