from django.contrib import admin

from .models import UserProfile


admin.site.register(UserProfile)

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.'
        }),
    ]

Add description for Userprofile model
Add description for Userprofile model

  from django.contrib import admin
  
  from .models import UserProfile
  
  
- admin.site.register(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.'
+         }),
+     ]
  
Add description for Userprofile model
## Code Before:
from django.contrib import admin

from .models import UserProfile


admin.site.register(UserProfile)

## Instruction:
Add description for Userprofile model
## Code After:
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.'
        }),
    ]
