Compare commits

..

No commits in common. "b2e57836c1791b098008ff4adc648bf94e95ab08" and "a6f7cea8cc7679f00b2bd8da3f6d1951fd580efc" have entirely different histories.

8 changed files with 2 additions and 18 deletions

View file

@ -1,6 +1,5 @@
# To-do
* rate limiting to prevent abuse - especially on POST requests
* consider removing `events` and `worldmap` modules
* ask Denver about why so many license files

View file

@ -1,12 +1,9 @@
from captcha.fields import CaptchaField
from django import forms
from .models import CommunityTrackProposal
class CommunityTrackProposalForm(forms.ModelForm):
captcha = CaptchaField()
class Meta:
model = CommunityTrackProposal
exclude = []

View file

@ -93,7 +93,6 @@ INSTALLED_APPS = [
'conservancy.fossy',
'conservancy.podjango',
'conservancy.usethesource.apps.UseTheSourceConfig',
'captcha',
]
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'

View file

@ -40,6 +40,3 @@ SESSION_COOKIE_SECURE = True
STRIPE_API_KEY = get_secret(secrets, 'STRIPE_API_KEY')
STRIPE_ENDPOINT_SECRET = get_secret(secrets, 'STRIPE_ENDPOINT_SECRET')
CAPTCHA_FLITE_PATH = '/usr/bin/flite'
CAPTCHA_SOX_PATH = '/usr/bin/sox'

View file

@ -15,7 +15,6 @@ class SustainerOrderAdmin(admin.ModelAdmin):
'paid_time',
'payment_method',
'payment_id',
'recurring',
'name',
'email',
'amount',
@ -29,6 +28,6 @@ class SustainerOrderAdmin(admin.ModelAdmin):
'country',
]
readonly_fields = ['created_time', 'paid_time', 'payment_method', 'payment_id', 'recurring']
list_display = ['created_time', 'name', 'email', 'amount', 'recurring', 'paid_time']
readonly_fields = ['created_time', 'paid_time', 'payment_method', 'payment_id']
list_display = ['created_time', 'name', 'email', 'amount', 'paid']
list_filter = ['paid_time']

View file

@ -61,8 +61,6 @@ urlpatterns = [
re_path(r'^privacy-policy/', views.content),
re_path(r'^projects/', views.content),
re_path(r'^sustainer/', views.content),
path('captcha/', include('captcha.urls')),
]
# Serve uploaded media. Works only when DEBUG == True. Using '/media/'

View file

@ -130,10 +130,6 @@
apt:
name: build-essential,python3-dev,libffi-dev
- name: Install flite and sox for CAPTCHA text-to-speech
apt:
name: flite, sox
- name: Security settings
apt:
name: fail2ban

View file

@ -6,4 +6,3 @@ stripe
beautifulsoup4==4.11.2
html5lib==1.1
Pillow==9.4.0
django-simple-captcha==0.6.0