浏览代码

refactor models 6

unknown 1 月之前
父节点
当前提交
562c038bd1
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      app/admin.py
  2. 1 1
      users/admin.py

+ 1 - 1
app/admin.py

@@ -1,5 +1,5 @@
 from django.contrib import admin
-from models import Application, Review
+from .models import Application, Review
 # Register your models here.
 @admin.register(Application)
 class ApplicationAdmin(admin.ModelAdmin):

+ 1 - 1
users/admin.py

@@ -1,6 +1,6 @@
 from django.contrib import admin
 from django.contrib.auth.admin  import UserAdmin
-from models import User
+from .models import User
 # Register your models here.
 @admin.register(User)
 class UserAdmin(admin.ModelAdmin):