# Path: app/accounts/models.py
# class UserProfile(models.Model):
#     """
#     Models extra information about users that are not built into Django's default user model.
# 
#     Example of extra information can be google user id, facebook user id, etc.
#     """
# 
#     user = models.OneToOneField(User, on_delete=models.CASCADE, related_name="profile")
#     custom_auth_id = models.CharField(max_length=255, blank=True)
#     facebook_oauth_id = models.CharField(max_length=255, blank=True)
#     google_oauth_id = models.CharField(max_length=255, blank=True)
#     twitter_oauth_id = models.CharField(max_length=255, blank=True)
# 
#     def __str__(self):
#         return self.user.username


from django.contrib import admin
from .models import UserProfile



@admin.register(UserProfile)
class UserProfileAdmin(admin.ModelAdmin):
    fieldsets = [
        ('User Profile', {
            'fields': ('user', 'custom_auth_id', 'facebook_oauth_id',
                       'google_oauth_id', 'twitter_oauth_id',),

# Path: app/accounts/models.py
# class UserProfile(models.Model):
#     """
#     Models extra information about users that are not built into Django's default user model.
# 
#     Example of extra information can be google user id, facebook user id, etc.
#     """
# 
#     user = models.OneToOneField(User, on_delete=models.CASCADE, related_name="profile")
#     custom_auth_id = models.CharField(max_length=255, blank=True)
#     facebook_oauth_id = models.CharField(max_length=255, blank=True)
#     google_oauth_id = models.CharField(max_length=255, blank=True)
#     twitter_oauth_id = models.CharField(max_length=255, blank=True)
# 
#     def __str__(self):
#         return self.user.username


# Path: app/accounts/admin.py
from django.contrib import admin
from .models import UserProfile




@admin.register(UserProfile)
class UserProfileAdmin(admin.ModelAdmin):
    fieldsets = [
        ('User Profile', {
            'fields': ('user', 'custom_auth_id', 'facebook_oauth_id',
                       'google_oauth_id', 'twitter_oauth_id',),

            'description': 'This holds extra optional information about admin users.'