Compare commits
2 Commits
kyu_change
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| f1f2473d41 | |||
| dacd6b68c0 |
42
pyproject.toml
Normal file
42
pyproject.toml
Normal file
@@ -0,0 +1,42 @@
|
||||
[project]
|
||||
name = "kasu"
|
||||
version = "4.230918"
|
||||
description = "Homepage CMS for Kasu.at"
|
||||
authors = [
|
||||
{ name = "Christian Berg", email = "xeniac@xendynastie.at" }
|
||||
]
|
||||
requires-python = ">=3.8"
|
||||
dependencies = ["beautifulsoup4",
|
||||
"django < 5.0",
|
||||
"django-appconf",
|
||||
"django-ckeditor",
|
||||
"django-contrib-comments",
|
||||
"django-csp",
|
||||
"django-compressor",
|
||||
"django-extra-views",
|
||||
"django-markdown",
|
||||
"django-recaptcha",
|
||||
"easy_thumbnails[svg]",
|
||||
"icalendar",
|
||||
"openpyxl",
|
||||
"markdown",
|
||||
"pillow",
|
||||
"psycopg2-binary",
|
||||
"PyJWT",
|
||||
"pytz",
|
||||
"requests",
|
||||
"requests-oauthlib"
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"django-debug-toolbar",
|
||||
"django-rosetta",
|
||||
"sqlparse",
|
||||
"pylint>=2.0",
|
||||
"pylint-django"
|
||||
]
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["src"]
|
||||
|
||||
@@ -165,7 +165,7 @@ class Event(models.Model):
|
||||
self.location = master_event.location
|
||||
self.url = master_event.url
|
||||
self.image = self.image or master_event.image
|
||||
self.photo_count = self.photo_set.count()
|
||||
self.photo_count = self.photo_set.count() if self.pk else 0
|
||||
super(Event, self).save(**kwargs)
|
||||
|
||||
# Update the Hanchans if necessary:
|
||||
|
||||
Reference in New Issue
Block a user