修复了一些可能影响生产的问题

This commit is contained in:
2026-06-14 23:08:44 +08:00
parent 21bb129c5d
commit a155dc9f33
43 changed files with 66 additions and 210 deletions

View File

@@ -1,3 +1 @@
from django.contrib import admin
# Register your models here.

View File

@@ -1,5 +1,5 @@
from django.apps import AppConfig
class YonghuConfig(AppConfig):
name = "yonghu"
class UsersConfig(AppConfig):
name = "users"

View File

@@ -1,11 +1,9 @@
# yonghu/fadan_fenhong_utils.py
# 罚款缴纳分红处理公共方法(支持更新罚单中的申请人分红金额)
import decimal
import logging
from decimal import Decimal
from django.db import transaction
from django.core.exceptions import ObjectDoesNotExist
from orders.models import Fadan, FadanFenhong, FadanFenhongLilv
from users.models import UserShangjia

View File

@@ -1,8 +1,6 @@
# models.py
from django.db import models
import random
import string
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
from django.contrib.auth.models import AbstractBaseUser
# ==================== 用户主表 ====================
class UserMain(AbstractBaseUser):

View File

@@ -1,3 +1 @@
from django.test import TestCase
# Create your tests here.