Create Badge model with ImageField and ManyToManyField to UserProfile. Show all user Badges in user profile page. Badge model should be registered to Django admin, because Badge instances should be created and managed through Django admin.
To create admin user, you have to set User.is_superuser and User.is_staff flags to True. You can do this in bin/django shell_plus.
Create
Badge
model with ImageField and ManyToManyField to UserProfile. Show all user Badges in user profile page.Badge
model should be registered to Django admin, becauseBadge
instances should be created and managed through Django admin.To create admin user, you have to set
User.is_superuser
andUser.is_staff
flags toTrue
. You can do this inbin/django shell_plus
.