gold eggs backend
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
This commit is contained in:
2
core/http/forms/__init__.py
Normal file
2
core/http/forms/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from .another import * # noqa
|
||||
from .user import * # noqa
|
||||
17
core/http/forms/another.py
Normal file
17
core/http/forms/another.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""
|
||||
Project base forms
|
||||
"""
|
||||
|
||||
from django import forms
|
||||
from django_ckeditor_5 import widgets
|
||||
|
||||
from core.http import models
|
||||
|
||||
|
||||
class PostAdminForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = models.Post
|
||||
widgets = {
|
||||
"desc": widgets.CKEditor5Widget(),
|
||||
}
|
||||
fields = "__all__"
|
||||
8
core/http/forms/user.py
Normal file
8
core/http/forms/user.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from django.contrib.auth.forms import UserCreationForm
|
||||
from core.http.models import User
|
||||
|
||||
|
||||
class CustomUserCreationForm(UserCreationForm):
|
||||
class Meta(UserCreationForm.Meta):
|
||||
model = User
|
||||
fields = ("id", "phone")
|
||||
Reference in New Issue
Block a user