Skip to content

Commit

Permalink
Finish custom User model
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed IIbrahim committed Oct 5, 2024
1 parent 0fbf4c0 commit ca338be
Show file tree
Hide file tree
Showing 33 changed files with 11 additions and 8 deletions.
Binary file modified blango/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file modified blango/__pycache__/settings.cpython-36.pyc
Binary file not shown.
Binary file modified blango/__pycache__/urls.cpython-36.pyc
Binary file not shown.
Binary file modified blango/__pycache__/wsgi.cpython-36.pyc
Binary file not shown.
Binary file modified blango_auth/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file modified blango_auth/__pycache__/admin.cpython-36.pyc
Binary file not shown.
Binary file modified blango_auth/__pycache__/apps.cpython-36.pyc
Binary file not shown.
Binary file modified blango_auth/__pycache__/models.cpython-36.pyc
Binary file not shown.
8 changes: 7 additions & 1 deletion blango_auth/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,10 @@ class BlangoUserAdmin(UserAdmin):



admin.site.register(User, BlangoUserAdmin)
admin.site.register(User, BlangoUserAdmin)






2 changes: 1 addition & 1 deletion blango_auth/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.2.6 on 2024-09-30 03:03
# Generated by Django 3.2.6 on 2024-10-05 00:51

import django.contrib.auth.models
import django.contrib.auth.validators
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.2.6 on 2024-10-04 01:14
# Generated by Django 3.2.6 on 2024-10-05 01:22

import blango_auth.models
from django.db import migrations, models
Expand Down
Binary file modified blango_auth/migrations/__pycache__/0001_initial.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file modified blango_auth/migrations/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
3 changes: 0 additions & 3 deletions blango_auth/models.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from django.db import models
from django.contrib.auth.models import AbstractUser, UserManager
from django.utils.translation import gettext_lazy as _


# Create your models here.
class BlangoUserManager(UserManager):
def _create_user(self, email, password, **extra_fields):
Expand Down Expand Up @@ -31,7 +29,6 @@ def create_superuser(self, email, password, **extra_fields):
return self._create_user(email, password, **extra_fields)



class User(AbstractUser):
username = None
email = models.EmailField(
Expand Down
Binary file modified blog/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file modified blog/__pycache__/admin.cpython-36.pyc
Binary file not shown.
Binary file modified blog/__pycache__/apps.cpython-36.pyc
Binary file not shown.
Binary file modified blog/__pycache__/forms.cpython-36.pyc
Binary file not shown.
Binary file modified blog/__pycache__/models.cpython-36.pyc
Binary file not shown.
Binary file modified blog/__pycache__/views.cpython-36.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion blog/migrations/0006_authorprofile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.2.6 on 2024-09-30 03:15
# Generated by Django 3.2.6 on 2024-10-05 00:40

from django.conf import settings
from django.db import migrations, models
Expand Down
Binary file modified blog/migrations/__pycache__/0001_initial.cpython-36.pyc
Binary file not shown.
Binary file modified blog/migrations/__pycache__/0002_comment.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified blog/migrations/__pycache__/0006_authorprofile.cpython-36.pyc
Binary file not shown.
Binary file modified blog/migrations/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file modified blog/templatetags/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file modified blog/templatetags/__pycache__/blog_extras.cpython-36.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion data.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"model": "blog.comment", "pk": 2, "fields": {"creator": 1, "content": "I like myself!", "content_type": 4, "object_id": 1, "created_at": "2024-09-07T13:35:22.696Z", "modified_at": "2024-09-07T13:35:22.713Z"}}, {"model": "blog.comment", "pk": 3, "fields": {"creator": 3, "content": "wonderfull!", "content_type": 8, "object_id": 1, "created_at": "2024-09-08T19:09:55.378Z", "modified_at": "2024-09-08T19:09:55.378Z"}}, {"model": "blog.comment", "pk": 4, "fields": {"creator": 3, "content": "great", "content_type": 8, "object_id": 2, "created_at": "2024-09-08T19:10:09.602Z", "modified_at": "2024-09-08T19:10:09.602Z"}}, {"model": "blog.comment", "pk": 5, "fields": {"creator": 3, "content": "Continue", "content_type": 8, "object_id": 1, "created_at": "2024-09-09T10:31:59.631Z", "modified_at": "2024-09-09T10:31:59.631Z"}}, {"model": "blog.tag", "pk": 1, "fields": {"value": "django"}}, {"model": "blog.post", "pk": 1, "fields": {"author": 2, "created_at": "2024-09-05T08:09:59.307Z", "modified_at": "2024-09-07T13:15:47.999Z", "published_at": "2024-09-05T08:08:42Z", "title": "An Example Post", "slug": "an-example-post", "summary": "A short example post", "content": "example", "tags": [1]}}, {"model": "blog.post", "pk": 2, "fields": {"author": 1, "created_at": "2024-09-07T11:41:00.421Z", "modified_at": "2024-09-07T11:41:00.421Z", "published_at": "2024-09-07T11:31:34Z", "title": "No Pain No Gain", "slug": "no-pain-no-gain", "summary": "just make your best and all will be fine", "content": "Tell me why\r\nShould I let you go, go, go, go\r\nYou know I love you so, so, so, so\r\nThat's why I am here tonight\r\nSo put your hands up\r\nWhy shouldn't I flow, flow, flow, flow?\r\nAnd pump it up on stereo, oh, oh, oh, oh\r\nIt's time to stomp on five\r\n\r\nLadies and gentlemen, the 89ers are back, come on, let's go!\r\n\r\n(Whoo-oo)\r\n(Whoo-oo)\r\n(Whoo-oo)\r\n(Whoo-oo)\r\n\r\nThis song's for you and that's no lie\r\nYou can't imagine, how hard I really try\r\nTo satisfy you everyday\r\nAnd all that you do is coming at me\r\nYou doing it like a killer-bee\r\nHey, hey, it's alright\r\nWe have to stop our feeling-fight\r\nOh, oh, you take my hand\r\n89ers is a punk tend band\r\n\r\nPlease tell me why should I let you go, go, go, go\r\nBecause I love you so, so, so, so\r\nThat's why I'm here tonight\r\nSo put your hands up\r\nWhy shouldn't I let it flow flow flow?\r\nAnd pump it up the stereo, oh, oh, oh, oh\r\nIt's time to stop the fight!\r\n\r\nCome with me, let's go for a ride\r\nFollow me to the brighter side\r\nPretty girl, just look around\r\nThat everybody is jumping around to the 89ers sound\r\nHey, hey, what's that noise?\r\nRushing into ears of the girls and the boys\r\nOh, oh, enjoy the show\r\nThat the 89ers never punchline flow\r\n\r\nPlease tell me why should I let you go, go, go, go\r\nBecause I love you so, so, so, so\r\nThat's why I'm here tonight\r\nSo put your hands up\r\nWhy shouldn't I let it flow flow flow?\r\nAnd pump it up the stereo, oh, oh, oh\r\nIt's time to stop the fight!\r\n\r\n(Whoo-oo)\r\n(Whoo-oo)\r\n(Whoo-oo)\r\n(Whoo-oo)\r\n\r\nPlease tell me why should I let you go, go, go, go\r\nBecause I love you so, so, so, so\r\nThat's why I'm here tonight\r\nSo put your hands up\r\nWhy shouldn't I let it flow flow flow?\r\nAnd pump it up the stereo, oh, oh, oh\r\nIt's time to stop the fight!\r\n\r\n\r\nAdd to favorites\r\n\r\nAdd to playlist\r\n\r\nFont size\r\nTab\r\nPrint\r\nCorrect\r\n\r\nAuto-scroll", "tags": [1]}}, {"model": "blango_auth.user", "pk": 1, "fields": {"password": "pbkdf2_sha256$260000$o7DTh9eqqv0EimHkzb9BOM$0MliSxvL/HwG67CapZpOYf76V+tcWO5Us5YhznhOFnU=", "last_login": "2024-09-07T11:31:15Z", "is_superuser": true, "username": "Zoldycks", "first_name": "Hunter", "last_name": "Silva", "email": "[email protected]", "is_staff": true, "is_active": true, "date_joined": "2024-09-05T08:06:01Z", "groups": [], "user_permissions": []}}, {"model": "blango_auth.user", "pk": 2, "fields": {"password": "pbkdf2_sha256$260000$SXwqKRlvz3IboAkJygYyld$aIRu0FUj6qNJ59iAUNiP6nmWrU9L8nrOJGZGoqA3jyM=", "last_login": null, "is_superuser": false, "username": "codio", "first_name": "Ahmed", "last_name": "ibrahim", "email": "[email protected]", "is_staff": false, "is_active": true, "date_joined": "2024-09-07T13:14:21Z", "groups": [], "user_permissions": []}}, {"model": "blango_auth.user", "pk": 3, "fields": {"password": "pbkdf2_sha256$260000$ETPMU7VEJhLYaYU5AbjP9Y$2BMh0e9+fssUx1uWvF+Y74b5bZn/jkehc7zBLJJQk5w=", "last_login": "2024-09-08T19:09:22.333Z", "is_superuser": true, "username": "ahmed", "first_name": "", "last_name": "", "email": "[email protected]", "is_staff": true, "is_active": true, "date_joined": "2024-09-08T19:08:33.694Z", "groups": [], "user_permissions": []}}, {"model": "blango_auth.user", "pk": 4, "fields": {"password": "argon2$argon2id$v=19$m=102400,t=2,p=8$cTFXSzlYY014STRZQ01iY0RqSWxpNg$TtwXCIdBCNiwXF1UQ22yvA", "last_login": "2024-09-24T16:33:07.475Z", "is_superuser": true, "username": "Zoldyck", "first_name": "", "last_name": "", "email": "[email protected]", "is_staff": true, "is_active": true, "date_joined": "2024-09-17T15:42:15.364Z", "groups": [], "user_permissions": []}}]
[{"model": "auth.user", "pk": 1, "fields": {"password": "argon2$argon2id$v=19$m=102400,t=2,p=8$SzUyWk1nV0hNblVFSm9Sc29wcmhKUg$yqkcmH4ZOFp4xCOLrG4KBA", "last_login": null, "is_superuser": true, "username": "codio", "first_name": "", "last_name": "", "email": "[email protected]", "is_staff": true, "is_active": true, "date_joined": "2024-10-05T00:23:29.550Z", "groups": [], "user_permissions": []}}]
Binary file modified db.sqlite3
Binary file not shown.

0 comments on commit ca338be

Please sign in to comment.