We have phased out the LDAP login form. Log in by using the CS Single Sign-On button in the Sign in with section below the Login form. :bug:

Skip to content
Snippets Groups Projects

added organisation to accounts

Merged Cameron Worthington requested to merge Organisations into main
3 files
+ 9
5
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 6
2
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import User
from .models import *
from django.contrib.auth.models import AbstractUser
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
@@ -8,7 +8,7 @@ from django.utils.translation import gettext_lazy as _
# Overwrites the default admin class to remove username and add practice number and organistion
@admin.register(User) #overwrites which base user model to use
@admin.register(User) #overwrites which base user model to display on the admin page
class UserAdmin(BaseUserAdmin):
fieldsets = (
@@ -44,4 +44,8 @@ class UserAdmin(BaseUserAdmin):
search_fields = ("first_name", "last_name", "email")
ordering = ("last_name",)
@admin.register(Organisation)
class OrganisationAdmin(admin.ModelAdmin):
pass
#admin.site.register(User, UserAdmin)
\ No newline at end of file
Loading