-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Claims are now visible to all non-recepients - Breaking: Suggested items are not visible to recipient - Wishlists can be part of any number of groups - Login/Signup/Account forms are now bootstrap-ifieid - justfile for dev recipies
- Loading branch information
Showing
29 changed files
with
717 additions
and
97 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: '3.8' | ||
services: | ||
db: | ||
image: postgres:16.1-alpine3.19 | ||
restart: always | ||
environment: | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
# POSTGRES_USER: postgres | ||
# POSTGRES_PASSWORD: postgres | ||
# POSTGRES_DB: postgres | ||
ports: | ||
- "5900:5432" | ||
redis: | ||
image: redis:alpine3.17 | ||
ports: | ||
- "6379:6379" |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 4.1.2 on 2023-12-17 02:04 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
def forwards_func(apps, schema_editor): | ||
Wishlist = apps.get_model("gifter", "Wishlist") | ||
for wishlist in Wishlist.objects.all(): | ||
wishlist.groups.add(wishlist.group) | ||
wishlist.save() | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("auth", "0012_alter_user_first_name_max_length"), | ||
("gifter", "0005_alter_claim_options_alter_groupinvitation_options_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="wishlist", | ||
name="groups", | ||
field=models.ManyToManyField(related_name="wishlists", to="auth.group"), | ||
), | ||
migrations.RunPython( | ||
code=forwards_func, | ||
reverse_code=migrations.RunPython.noop, | ||
), | ||
] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Generated by Django 4.1.2 on 2023-12-17 02:29 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("gifter", "0006_wishlist_groups"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="wishlist", | ||
name="group", | ||
), | ||
] |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
|
||
def user_display(user): | ||
if user.first_name or user.last_name: | ||
return f"{user.first_name} {user.last_name}" | ||
else: | ||
return user.email |
Oops, something went wrong.