Jobs feature, lets unverified users use site/see profile#9
Merged
LaneyCommits merged 2 commits intomainfrom Mar 17, 2026
Merged
Jobs feature, lets unverified users use site/see profile#9LaneyCommits merged 2 commits intomainfrom
LaneyCommits merged 2 commits intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a database-backed jobs feature, improves account/profile behavior (including unverified users), enhances admin management for users, and makes the resources page look similar to the general website styling.
Notes
Changes
Jobs feature
New
jobsappJobMajormodel to mirror the existing major “pill” keys across quiz/resume/colleges.key: internal major key (e.g.computer_science,business,engineering).label: human-friendly label shown to students.Jobmodel for jobs/internships:title,company,city,state,is_remote,employment_type(internship/full-time/part-time),url,description,posted_at,source,is_active, timestamps.JobMajorso each job can target multiple majors.Admin integration
JobMajorandJobinjobs/admin.pywith search, list filters, and a horizontal major selector.JobMajor.keyandJobMajor.labelto clarify internal keys vs display labels.Example data and seeding
jobs/example_jobs.pywith curated US example jobs/internships mapped to existing major keys.seed_jobs:python manage.py seed_jobsJobMajorrows fromcareer_quiz.quiz_data.MAJORS.Jobrecords and attaches the correct majors.User-facing jobs page
/jobs/wired viajobs/urls.pyandconfig/urls.py(namespace:jobs).templates/jobs/home.html:jobs/views.py:Job.objects.filter(is_active=True).Navigation
templates/base.html:Accounts and profiles
Profiles are created even if email is unverified
Profileimmediately, then send verification email.Profileexists (safety net for older users).profile.email_verified = Trueinstead of creating the profile.profile_viewandpersonalization_viewnow useget_or_create, so users can access these pages even if unverified.Account button behavior
Logout UX
Email verification status in profile
templates/accounts/profile.htmlshows verified/unverified status and a link back to the verification instructions page when unverified.Admin: user management
accounts/admin.pythat:Useradmin and re-registers a customized one.user.profile.email_verified.Profileinline on the user admin page for quick editing.ProfileandEmailVerificationmodels for direct management with helpful list/search settings.Profile.email_verifiedto clarify meaning and impact.Auth UI / CTA styling
templates/accounts/verify_email_sent.htmlso the “Go to home” CTA uses thebtn btn-headerstyling and is not affected by auth-page link styling.Testing / How to validate
python manage.py makemigrations jobspython manage.py migratepython manage.py seed_jobs/jobs/and confirm listings render and filters work (including “State=Any/blank” not filtering)./admin/:Job/JobMajorare manageable.