incorporate new pyteamsnap, incorporate loading from sessions before creating new client.
This commit is contained in:
@@ -17,7 +17,7 @@ def teamsnap_event_redirect(request, event_id, team_id):
|
||||
def edit_lineup(request, event_ids, team_id):
|
||||
import re
|
||||
|
||||
from pyteamsnap.api import (
|
||||
from pyteamsnap.objects import (
|
||||
Availability,
|
||||
AvailabilitySummary,
|
||||
Event,
|
||||
@@ -25,7 +25,6 @@ def edit_lineup(request, event_ids, team_id):
|
||||
EventLineupEntry,
|
||||
Member,
|
||||
)
|
||||
|
||||
from teamsnap.forms import LineupEntryFormset
|
||||
|
||||
client = get_teamsnap_client(request)
|
||||
@@ -200,8 +199,7 @@ def edit_lineup(request, event_ids, team_id):
|
||||
|
||||
|
||||
def submit_lineup(request, team_id, event_id):
|
||||
from pyteamsnap.api import Event, EventLineup, EventLineupEntry
|
||||
|
||||
from pyteamsnap.objects import Event, EventLineup, EventLineupEntry
|
||||
from teamsnap.forms import LineupEntryFormset
|
||||
|
||||
client = get_teamsnap_client(request)
|
||||
@@ -260,7 +258,8 @@ def multi_lineup_choose(request, team_id=None):
|
||||
team_id=request.user.teamsnap_preferences.managed_team_id,
|
||||
)
|
||||
from django.forms import formset_factory
|
||||
from pyteamsnap.api import Event
|
||||
|
||||
from pyteamsnap.objects import Event
|
||||
|
||||
from .forms import EventChooseForm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user