Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr Trotsyshyn committed Aug 24, 2019
1 parent 3193837 commit d02b444
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
2 changes: 2 additions & 0 deletions django_realtime_admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
pass

from django_realtime_admin.main import RealTimeModelAdmin

__all__ = ['RealTimeModelAdmin']
9 changes: 4 additions & 5 deletions django_realtime_admin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ def updates_pk(self, obj):
def get_urls(self):
info = self.model._meta.app_label, self.model._meta.model_name
return [
# specify a list of dynamic channels using formatting based on view keywords
url(r'^(?P<obj_id>\d+)/updates/', django_eventstream.views.events,
{'format-channels': [get_channel_name_for_model(self.model)]},
name='%s_%s_updates' % info),
url(r'^(?P<obj_id>\d+)/row/', self.obj_row, name='%s_%s_row' % info)
url(r'^(?P<obj_id>\d+)/updates/', django_eventstream.views.events,
{'format-channels': [get_channel_name_for_model(self.model)]},
name='%s_%s_updates' % info),
url(r'^(?P<obj_id>\d+)/row/', self.obj_row, name='%s_%s_row' % info)
] + super().get_urls()

def obj_row(self, request, obj_id):
Expand Down
11 changes: 0 additions & 11 deletions django_realtime_admin/views.py

This file was deleted.

0 comments on commit d02b444

Please sign in to comment.