Skip to content

Commit

Permalink
Ref #207 - Remove redundant usages of actstream package as requested …
Browse files Browse the repository at this point in the history
…by PR review

- Remove it from apps and requirements.txt
- Remove method using activity stream from app configs
  • Loading branch information
Kerem Zaman committed Dec 10, 2021
1 parent be971ab commit 140d35d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
11 changes: 1 addition & 10 deletions backend/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,11 @@
'eventposts',
'profiles',
'corsheaders',
'frontend',
'actstream',
'frontend'
]

SITE_ID = 1

ACTSTREAM_SETTINGS = {
'MANAGER': 'actstream.managers.ActionManager',
'FETCH_RELATIONS': True,
'USE_PREFETCH': True,
'USE_JSONFIELD': False,
'GFK_FETCH_DEPTH': 0,
}

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
Expand Down
5 changes: 1 addition & 4 deletions backend/authentication/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

class AuthenticationConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'authentication'
def ready(self):
from actstream import registry
registry.register(self.get_model('User'))
name = 'authentication'
5 changes: 1 addition & 4 deletions backend/eventposts/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

class EventpostsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'eventposts'
def ready(self):
from actstream import registry
registry.register(self.get_model('EventPost'))
name = 'eventposts'
3 changes: 1 addition & 2 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ djangorestframework==3.12.4
djangorestframework-jsonapi
djangorestframework-simplejwt==5.0.0
django_rest_passwordreset
django-cors-headers
django-activity-stream
django-cors-headers

0 comments on commit 140d35d

Please sign in to comment.