Add IntelliJ IDEA project configuration files
This commit adds IntelliJ IDEA-specific configuration files for the project, including module setup, version control integration, inspection profiles, and workspace settings. These files facilitate development environment configuration for contributors using IntelliJ IDEA.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
from django.contrib.auth.models import AbstractUser
|
||||
from django.db import models
|
||||
|
||||
class DepotUser(AbstractUser):
|
||||
USER_TYPES = (
|
||||
('management', 'Management'),
|
||||
('barrier', 'Barrier Staff'),
|
||||
('client', 'Client'),
|
||||
)
|
||||
user_type = models.CharField(max_length=20, choices=USER_TYPES, default='client')
|
||||
|
||||
# Add any other fields you want
|
||||
phone_number = models.CharField(max_length=15, blank=True, null=True)
|
||||
email = models.EmailField(unique=True, blank=False, null=False)
|
||||
line = models.ForeignKey(
|
||||
'common.LinesModel',
|
||||
on_delete=models.CASCADE,
|
||||
related_name='user_lines',
|
||||
blank=True,
|
||||
null=True
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
from django.shortcuts import render
|
||||
from django.urls import reverse_lazy
|
||||
from django.views.generic import TemplateView, FormView
|
||||
|
||||
from users.forms import LoginForm
|
||||
|
||||
|
||||
# Create your views here.
|
||||
class LoginView(FormView):
|
||||
template_name = 'logintest.html'
|
||||
success_url = reverse_lazy('dashboard')
|
||||
form_class = LoginForm
|
||||
Reference in New Issue
Block a user