-
Notifications
You must be signed in to change notification settings - Fork 0
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
2021 Release #2
Open
vrocha
wants to merge
17
commits into
develop
Choose a base branch
from
2021
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
2021 Release #2
Changes from 2 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
9be0b5f
Update django version to 3.2.9
vrocha 9484331
Update django version, add new photo model
vrocha 26884cc
Do not use memcache
vrocha 075a4ea
2021 Switch to one-vote-per-entry instead of per category
PeterGrand ff89a72
Add gallery
vrocha 5ea9498
Merge remote-tracking branch 'origin/2021' into 2021
vrocha 2398cf7
2021 Update donation links and language
PeterGrand a7fec03
Social image
vrocha 95013e5
2021 Order homepage entries by name
PeterGrand 264f78e
Merge branch '2021' of github.com:2RockSoftware/gingerhouse into 2021
PeterGrand 7d22a44
Only show previous/next icons for the gallery if more than 1 photo
vrocha 67217fd
Merge remote-tracking branch 'origin/2021' into 2021
vrocha ecc5e1c
2021 Update year in title tag and domain
PeterGrand ba48aec
Merge branch '2021' of github.com:2RockSoftware/gingerhouse into 2021
PeterGrand dfea0e9
2021 Fix end of voting deadline
PeterGrand 732329d
2021 Fix some legacy donation verbiage and category mention
PeterGrand 678633f
2021 Update home page verbiage
PeterGrand File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Large diffs are not rendered by default.
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
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,25 @@ | ||
# Generated by Django 3.2.9 on 2021-12-01 23:15 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('houses', '0002_auto_20201205_1227'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='category', | ||
options={'verbose_name_plural': 'Categories'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='gingerhouse', | ||
options={'ordering': ['-category__name']}, | ||
), | ||
migrations.RemoveField( | ||
model_name='gingerhouse', | ||
name='image', | ||
), | ||
] |
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
Empty file.
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,26 @@ | ||
# Generated by Django 3.2.9 on 2021-12-01 23:16 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('houses', '0003_remove_image_field'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Image', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('image', models.ImageField(blank=True, help_text='Ginger house image. Horizontal format, cropped to 812x680 px.', max_length=255, null=True, upload_to='uploads/', verbose_name='Ginger house image')), | ||
('is_primary', models.BooleanField(default=False)), | ||
('description', models.TextField(blank=True)), | ||
('house', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='houses.gingerhouse')), | ||
], | ||
), | ||
] |
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,18 @@ | ||
# Generated by Django 3.2.9 on 2021-12-01 23:46 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('houses', '0003_remove_image_field'), | ||
('photos', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameModel( | ||
old_name='Image', | ||
new_name='Photo', | ||
), | ||
] |
Empty file.
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,21 @@ | ||
from django.db import models | ||
|
||
|
||
class Photo(models.Model): | ||
house = models.ForeignKey("houses.GingerHouse", null=True, blank=False, on_delete=models.SET_NULL) | ||
image = models.ImageField( | ||
verbose_name="Ginger house image", | ||
upload_to='uploads/', | ||
max_length=255, | ||
blank=True, | ||
null=True, | ||
help_text="Ginger house image. Horizontal format, cropped to 812x680 px.", | ||
) | ||
is_primary = models.BooleanField(default=False) | ||
description = models.TextField(blank=True) | ||
|
||
class Meta: | ||
ordering = ("house__id", "is_primary") | ||
|
||
def __str__(self): | ||
return self.description |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% load static from staticfiles %} | ||
{% load static %} | ||
<!DOCTYPE html> | ||
<html lang="en" class="no-js"> | ||
<head> | ||
|
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️