Skip to content

Commit

Permalink
model admin updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Sany07 committed May 5, 2021
1 parent f35d6d6 commit bf384c5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
10 changes: 10 additions & 0 deletions job/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@
}
}

# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
# }
# }




# Password validation


Expand Down
Binary file modified jobapp/__pycache__/admin.cpython-37.pyc
Binary file not shown.
19 changes: 15 additions & 4 deletions jobapp/admin.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
from django.contrib import admin
from .models import *

# Register your models here.

admin.site.register(Category)
admin.site.register(Applicant)
admin.site.register(Job)
admin.site.register(BookmarkJob)

class ApplicantAdmin(admin.ModelAdmin):
list_display = ('job','user','timestamp')

admin.site.register(Applicant,ApplicantAdmin)


class JobAdmin(admin.ModelAdmin):
list_display = ('title','is_published','is_closed','timestamp')

admin.site.register(Job,JobAdmin)

class BookmarkJobAdmin(admin.ModelAdmin):
list_display = ('job','user','timestamp')
admin.site.register(BookmarkJob,BookmarkJobAdmin)


0 comments on commit bf384c5

Please sign in to comment.