-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.contrib import admin | ||
|
||
# Register your models here. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class AccountsConfig(AppConfig): | ||
default_auto_field = 'django.db.models.BigAutoField' | ||
name = 'accounts' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Generated by Django 4.1.10 on 2024-01-01 13:26 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='User', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('password', models.CharField(max_length=128, verbose_name='password')), | ||
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), | ||
('email', models.EmailField(max_length=255, unique=True, verbose_name='Email')), | ||
('first_name', models.CharField(max_length=200)), | ||
('last_name', models.CharField(max_length=200)), | ||
('age', models.PositiveIntegerField()), | ||
('gender', models.CharField(max_length=200)), | ||
('address', models.CharField(max_length=600)), | ||
('preferred_lang', models.CharField(max_length=200)), | ||
('company', models.CharField(max_length=200)), | ||
('job_title', models.CharField(max_length=200)), | ||
('industry', models.CharField(max_length=400)), | ||
('experience', models.IntegerField()), | ||
('is_active', models.BooleanField(default=True)), | ||
('is_admin', models.BooleanField(default=False)), | ||
('created_at', models.DateTimeField(auto_now_add=True)), | ||
('updated_at', models.DateTimeField(auto_now=True)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from djoser.serializers import UserCreateSerializer | ||
from django.contrib.auth import get_user_model | ||
|
||
User = get_user_model() | ||
|
||
|
||
class UserCreateSerializer(UserCreateSerializer): | ||
class Meta(UserCreateSerializer.Meta): | ||
model = User | ||
fields = ('email', | ||
'first_name', | ||
'last_name', | ||
'age', | ||
'gender', | ||
'address', | ||
'preferred_lang', | ||
'company', | ||
'job_title', | ||
'industry', | ||
'experience', | ||
'password', | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from django.shortcuts import render | ||
|
||
# Create your views here. |
This file was deleted.
This file was deleted.