Skip to content

Commit

Permalink
Linted code, fixed typo in .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
sdolemelipone committed Jun 21, 2021
1 parent 3c6fde2 commit f3ade6a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dist/
.idea
nosetests.xml
*.sqlite3
.env/
.venv/
venv/
coverage.xml
/.tox/
6 changes: 1 addition & 5 deletions extra_views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
)
from extra_views.contrib.mixins import SearchableListMixin, SortableListMixin
from extra_views.dates import CalendarMonthView
from extra_views.formsets import (
FormSetView,
InlineFormSetView,
ModelFormSetView,
)
from extra_views.formsets import FormSetView, InlineFormSetView, ModelFormSetView

__version__ = "0.14.0"

Expand Down
8 changes: 4 additions & 4 deletions extra_views/dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,11 @@ def get_context_data(self, **kwargs):
# Event happens during this week
slot = 1
width = (
intersect_length
) # How many days is the event during this week?
intersect_length # How many days is the event during this week?
)
nowrap_previous = (
True
) # Does the event continue from the previous week?
True # Does the event continue from the previous week?
)
nowrap_next = True # Does the event continue to the next week?

if val["range"][0] >= week[0]:
Expand Down
4 changes: 1 addition & 3 deletions extra_views_tests/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,5 @@
SearchableItemListView.as_view(define_query=True),
),
path("searchable/exact_query/", SearchableItemListView.as_view(exact_query=True)),
path(
"searchable/wrong_lookup/", SearchableItemListView.as_view(wrong_lookup=True)
),
path("searchable/wrong_lookup/", SearchableItemListView.as_view(wrong_lookup=True)),
]

0 comments on commit f3ade6a

Please sign in to comment.