<s> from django . shortcuts import get_object_or_404 <EOL> from django . shortcuts import render <EOL> from core . group . models import Group <EOL> from core . group . forms import GroupForm <EOL> from core . views import ( <EOL> CoreDeleteView , CoreListView , CoreCreateView , CoreUpdateView <EOL> ) <EOL> class GroupView ( object ) : <EOL> model = Group <EOL> queryset = Group . objects . all ( ) <EOL> form_class = GroupForm <EOL> class GroupDeleteView ( GroupView , CoreDeleteView ) : <EOL> pass <EOL> class GroupListView ( GroupView , CoreListView ) : <EOL> template_name = "<STR_LIT>" <EOL> class GroupCreateView ( GroupView , CoreCreateView ) : <EOL> template_name = "<STR_LIT>" <EOL> class GroupUpdateView ( GroupView , CoreUpdateView ) : <EOL> template_name = "<STR_LIT>" <EOL> def group_detail ( request , group_pk ) : <EOL> group = get_object_or_404 ( Group , pk = group_pk ) <EOL> attrs = group . keyvalue_set . all ( ) <EOL> return render ( request , "<STR_LIT>" , { <EOL> "<STR_LIT>" : group , <EOL> "<STR_LIT>" : attrs <EOL> } ) </s>
