Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accounts templates django syntax #1428

Merged
merged 64 commits into from
Oct 21, 2022
Merged
Show file tree
Hide file tree
Changes from 63 commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
8eddd0b
Add djano-stubs
brylie Oct 11, 2022
9d6f23f
Add isort black compatibility
brylie Oct 11, 2022
810a1e6
Remove django-stubs from main dependencies
brylie Oct 11, 2022
f4119c7
Add django-stubs to mypy config
brylie Oct 11, 2022
1e805e8
Add django-extensions to mypy config
brylie Oct 11, 2022
ddcec74
Remove mypy pre-commit
brylie Oct 11, 2022
b63bdd2
Disable unused API endpoints (TODO: remove)
brylie Oct 11, 2022
f13630e
Simplify UserProfileView
brylie Oct 11, 2022
fef456f
Simplify profile page (tabs split to new task)
brylie Oct 11, 2022
40e1986
Restore delete_user view/endpoint
brylie Oct 11, 2022
183ba76
Move global nav to base.html
brylie Oct 11, 2022
6215e40
Remove global nav import
brylie Oct 11, 2022
f969ed5
Remove ProfileSetupView
brylie Oct 11, 2022
2d1b376
Ensure user is authenticated before accessing profile
brylie Oct 11, 2022
a069468
Add button text
brylie Oct 11, 2022
94a9013
Use only Django for Settings view
brylie Oct 11, 2022
234137b
Remove unused import
brylie Oct 11, 2022
40038ae
Remove unused endpoints and tests
brylie Oct 11, 2022
c92bb88
Remove clear_profile view
brylie Oct 11, 2022
ba8e7b4
Cleanup unused JS
brylie Oct 11, 2022
335a8bd
Remove edit_user API endpoint and test
brylie Oct 11, 2022
c0361a3
Small todo
brylie Oct 11, 2022
d45e64c
Port "delete account" to Django view
brylie Oct 11, 2022
d58b28f
Remove ProfileManager
brylie Oct 12, 2022
c955783
Remove redundant __init__
brylie Oct 12, 2022
e345587
Add TODO
brylie Oct 12, 2022
52bda91
Move issues code to User model
brylie Oct 12, 2022
9397172
Remove get_feed and get_profile
brylie Oct 12, 2022
ae4a5e1
Remove ProfileActivationView
brylie Oct 12, 2022
a69abea
Avoid circular dependencies
brylie Oct 12, 2022
530f073
Add related_name for all ForeignKeys
brylie Oct 12, 2022
1f06ef1
Avoid circular dependencies
brylie Oct 12, 2022
11fae11
Remove User.issues property
brylie Oct 12, 2022
f9964a0
Remove unused code
brylie Oct 12, 2022
af0aff4
Add profile image to settings form
brylie Oct 12, 2022
f61c4ac
Remove "readonly" settings page
brylie Oct 12, 2022
9b82046
Add multipart/form-data for image upload
brylie Oct 12, 2022
415420d
Fix profile image display
brylie Oct 12, 2022
4e8ed1d
Merge branch 'develop' into accounts-templates-django-syntax
brylie Oct 16, 2022
125ffb9
Remove unused API views/tests
brylie Oct 18, 2022
fde9aae
Remove profile chip_summarize and unused imprts
brylie Oct 18, 2022
1521150
Restore file from main
brylie Oct 18, 2022
3ed578f
Remove unneeded tests
brylie Oct 18, 2022
ca5d7d7
Simplify following/followers relationship
brylie Oct 18, 2022
6eb8520
Remove full_profile field/checks
brylie Oct 18, 2022
fa5cc71
Add model __str__ methods
brylie Oct 18, 2022
e9ffbf2
Register Profile model
brylie Oct 18, 2022
ddad86d
Move docstring
brylie Oct 18, 2022
5514fee
Profile.following symmetrical=False
brylie Oct 18, 2022
dd8197d
Add follow/unfollow views
brylie Oct 18, 2022
51c070f
Add follow/unfollow buttons
brylie Oct 18, 2022
5f06105
Remove remaining API views/URLs
brylie Oct 18, 2022
7e570a2
Move file
brylie Oct 18, 2022
43a1567
Fix accounts.urls
brylie Oct 18, 2022
16a2fd9
Salvage feed template; cleanup
brylie Oct 18, 2022
a0772aa
Fix template syntax
brylie Oct 18, 2022
77c5df9
Move feed template
brylie Oct 19, 2022
adfd1d4
Rename partials
brylie Oct 20, 2022
a887761
Move profile image settings to settings module
brylie Oct 20, 2022
67ce9d0
Remove unused file
brylie Oct 20, 2022
8299513
Change view context to return profile
brylie Oct 20, 2022
2fa1c89
Prevent users from following themselves
brylie Oct 20, 2022
96cc629
Restore ProfileActivationView
brylie Oct 21, 2022
69bfb98
Restore ProfileActivationViewTests
brylie Oct 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,3 @@ repos:
rev: v0.13.1
hooks:
- id: curlylint

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.981
hooks:
- id: mypy
args: [--no-strict-optional, --ignore-missing-imports]

183 changes: 92 additions & 91 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion project/accounts/admin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from django.contrib import admin
from .models import User

from .models import Profile, User

# Register your models here.
admin.site.register(Profile)

admin.site.register(User)
Loading