Skip to content

Commit

Permalink
bug fixes on deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mahyar-amiri committed Feb 18, 2023
1 parent b4454dc commit 3564ad5
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ recursive-include comment/migrations *
recursive-include comment/static *
recursive-include comment/templates *
recursive-include comment/templatetags *
global-exclude *.pyc
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ You can customize global settings by adding keywords to `COMMENT_SETTINGS` dicti

```python
# setting.py
COMMENTS_SETTINGS = {
COMMENT_SETTINGS = {
# generated urlhash length
'URLHASH_LENGTH': 8,

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.1
2.7.2
2 changes: 1 addition & 1 deletion comment/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class LazySettings(LazyObject):
def _setup(self):
self._wrapped = Settings(app_settings.COMMENT_SETTINGS, django_settings.COMMENT_SETTINGS)
self._wrapped = Settings(getattr(app_settings, 'COMMENT_SETTINGS', {}), getattr(django_settings, 'COMMENT_SETTINGS', {}))


class Settings(object):
Expand Down
4 changes: 2 additions & 2 deletions comment/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ class ReactAdmin(admin.ModelAdmin):
search_fields = ('slug', 'emoji')


class SettingAdmin(admin.ModelAdmin):
class SettingsAdmin(admin.ModelAdmin):
list_display = ('name', 'slug')
search_fields = ('name', 'slug')
prepopulated_fields = {'slug': ('name',)}


admin.site.register(CommentSettings, SettingAdmin)
admin.site.register(CommentSettings, SettingsAdmin)
admin.site.register(Comment, CommentAdmin)
admin.site.register(Reaction, ReactionAdmin)
admin.site.register(React, ReactAdmin)
2 changes: 1 addition & 1 deletion comment/settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.conf import settings

_COMMENT_SETTINGS = getattr(settings, "COMMENTS_SETTINGS", {})
_COMMENT_SETTINGS = getattr(settings, "COMMENT_SETTINGS", {})

COMMENT_SETTINGS = {
'LOGIN_URL': getattr(settings, 'LOGIN_URL'),
Expand Down
Binary file modified comment/static/img/profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3564ad5

Please sign in to comment.