# -*- coding: utf-8 -*-
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from models import UserProfile,Project,Company

# Register your models here.
class ProfileInline(admin.TabularInline):
    model = UserProfile
    max_num = 1
    can_delete = False

class CustomUserAdmin(UserAdmin):
    inlines = [ProfileInline,]

admin.site.unregister(User)
admin.site.register(User, CustomUserAdmin)

admin.site.register(Company)
admin.site.register(Project)



# -*- coding: utf-8 -*-
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from models import UserProfile,Project,Company

# Register your models here.
class ProfileInline(admin.TabularInline):
    model = UserProfile
    max_num = 1
    can_delete = False

class CustomUserAdmin(UserAdmin):
    inlines = [ProfileInline,]

admin.site.unregister(User)
admin.site.register(User, CustomUserAdmin)

admin.site.register(Company)
admin.site.register(Project)



# -*- coding: utf-8 -*- # Register your models here.