# Path: della/user_manager/models.py
# class UserProfile(TimeStampMixin):
#     """
#     To manage users and stuff. From default `User` we will use `username`,
#     `email`, `password`, `first_name` and `last_name`.
#     """
#     bio = models.TextField(null=True)
#     address = models.TextField(null=True)
#     shipping_instructions = models.TextField(null=True)
#     is_enabled_exchange = models.BooleanField(default=False)
#     preferences = models.TextField(null=True)
#     fb_profile_url = models.URLField(null=True)
#     twitter_profile_url = models.URLField(null=True)
#     website_url = models.URLField(null=True)
#     wishlist_url = models.URLField(null=True)
#     avatar = models.ImageField(
#         upload_to=avatar_file_name, default='avatar.png')
# 
#     user = models.OneToOneField(User, on_delete=models.CASCADE)
#     santee = models.OneToOneField(User, on_delete=models.CASCADE,  related_name='santa', null=True)
# 
#     def __str__(self):
#         return self.user.username


from django.contrib import admin
from .models import UserProfile



class UserProfileAdmin(admin.ModelAdmin):
    model = UserProfile
    list_display = ['user', 'is_enabled_exchange']



# Path: della/user_manager/models.py
# class UserProfile(TimeStampMixin):
#     """
#     To manage users and stuff. From default `User` we will use `username`,
#     `email`, `password`, `first_name` and `last_name`.
#     """
#     bio = models.TextField(null=True)
#     address = models.TextField(null=True)
#     shipping_instructions = models.TextField(null=True)
#     is_enabled_exchange = models.BooleanField(default=False)
#     preferences = models.TextField(null=True)
#     fb_profile_url = models.URLField(null=True)
#     twitter_profile_url = models.URLField(null=True)
#     website_url = models.URLField(null=True)
#     wishlist_url = models.URLField(null=True)
#     avatar = models.ImageField(
#         upload_to=avatar_file_name, default='avatar.png')
# 
#     user = models.OneToOneField(User, on_delete=models.CASCADE)
#     santee = models.OneToOneField(User, on_delete=models.CASCADE,  related_name='santa', null=True)
# 
#     def __str__(self):
#         return self.user.username


# Path: della/user_manager/admin.py
from django.contrib import admin
from .models import UserProfile




class UserProfileAdmin(admin.ModelAdmin):
    model = UserProfile
    list_display = ['user', 'is_enabled_exchange']



admin.site.register(UserProfile, UserProfileAdmin)