django-clerk-users 0.1.3__py3-none-any.whl → 0.1.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,64 @@
1
+ """
2
+ Django admin configuration for ClerkUser model.
3
+ """
4
+
5
+ from django.contrib import admin
6
+ from django.contrib.auth.admin import UserAdmin
7
+
8
+ from django_clerk_users.models import ClerkUser
9
+
10
+
11
+ @admin.register(ClerkUser)
12
+ class ClerkUserAdmin(UserAdmin):
13
+ list_display = [
14
+ "email",
15
+ "first_name",
16
+ "last_name",
17
+ "clerk_id",
18
+ "is_staff",
19
+ "is_active",
20
+ ]
21
+ list_filter = ["is_staff", "is_active", "created_at"]
22
+ search_fields = ["email", "first_name", "last_name", "clerk_id"]
23
+ ordering = ["-created_at"]
24
+
25
+ fieldsets = (
26
+ (None, {"fields": ("email", "password")}),
27
+ ("Personal info", {"fields": ("first_name", "last_name", "image_url")}),
28
+ ("Clerk", {"fields": ("clerk_id", "uid")}),
29
+ (
30
+ "Permissions",
31
+ {
32
+ "fields": (
33
+ "is_active",
34
+ "is_staff",
35
+ "is_superuser",
36
+ "groups",
37
+ "user_permissions",
38
+ )
39
+ },
40
+ ),
41
+ (
42
+ "Timestamps",
43
+ {"fields": ("created_at", "updated_at", "last_login", "last_logout")},
44
+ ),
45
+ )
46
+
47
+ add_fieldsets = (
48
+ (
49
+ None,
50
+ {
51
+ "classes": ("wide",),
52
+ "fields": ("email", "password1", "password2"),
53
+ },
54
+ ),
55
+ )
56
+
57
+ readonly_fields = [
58
+ "uid",
59
+ "clerk_id",
60
+ "created_at",
61
+ "updated_at",
62
+ "last_login",
63
+ "last_logout",
64
+ ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-clerk-users
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Integrate Clerk with Django
5
5
  Project-URL: Changelog, https://github.com/jmitchel3/django-clerk-users
6
6
  Project-URL: Documentation, https://github.com/jmitchel3/django-clerk-users
@@ -1,4 +1,5 @@
1
1
  django_clerk_users/__init__.py,sha256=Ph93iT6_RNdZej3GM6cez-cJjiXw6w1V-u4GCnGP8TY,2287
2
+ django_clerk_users/admin.py,sha256=2pCE554rGd3m9fisAg55NYWCUHJbm-4bz4A2x_3C-2M,1541
2
3
  django_clerk_users/apps.py,sha256=twxTYml_kiGh4bYClV-clNdsnFnW5jqCIbz5bro8qBw,615
3
4
  django_clerk_users/caching.py,sha256=QXRd9cFvvUucrnLBd7_PId3xDodqcessDMybkHyskkU,4651
4
5
  django_clerk_users/client.py,sha256=-nBXsPOibVwD7zXQ-Z-qTBb7NyPuUZpvlDcAlDVFUBA,815
@@ -36,7 +37,7 @@ django_clerk_users/webhooks/handlers.py,sha256=GnotJNhN809DsrbfZjtJD0KurThKyAXZS
36
37
  django_clerk_users/webhooks/security.py,sha256=Ig2ZxF8SxX5o-4bNRehFhip4hVvcQxoGsTj3sTY3WSU,3461
37
38
  django_clerk_users/webhooks/signals.py,sha256=bytshg7IMDnlvnCZ0_TGjUXZZLRNxtn2RSx97qacZ-w,1668
38
39
  django_clerk_users/webhooks/views.py,sha256=0-ilzzO7tBfc-pENMy0ZSSkQ4uPqH2QAt249EK2wQKA,2287
39
- django_clerk_users-0.1.3.dist-info/METADATA,sha256=QPXCBa3pb89GxuB55PKY6jsRozTrUmGvqcaCwEjtnxE,8687
40
- django_clerk_users-0.1.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
41
- django_clerk_users-0.1.3.dist-info/licenses/LICENSE,sha256=X4PZDRQG4RmPhHU5c0G21Ki9LXWDCuLQ8W4mnED5RDU,1071
42
- django_clerk_users-0.1.3.dist-info/RECORD,,
40
+ django_clerk_users-0.1.4.dist-info/METADATA,sha256=BPHupREOO3vsaBFVJqTMM2uYIHvA4QkhxDYri6jTW58,8687
41
+ django_clerk_users-0.1.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
42
+ django_clerk_users-0.1.4.dist-info/licenses/LICENSE,sha256=X4PZDRQG4RmPhHU5c0G21Ki9LXWDCuLQ8W4mnED5RDU,1071
43
+ django_clerk_users-0.1.4.dist-info/RECORD,,