)
def handle_noargs(self, **options):
- apps = ProjectApplication.objects.select_related().all()
-
+ apps = ProjectApplication.objects.select_related().all().order_by('id')
+
labels = (
- 'application.id', 'project.id', 'name', 'application.state',
+ 'application.id', 'application.state', 'project.id', 'name',
'is_active', 'is_alive', 'is_suspended', 'is_terminated'
)
columns = (15, 10, 20, 10, 10, 10, 10, 10)
is_terminated = ''
fields = (
str(app.id),
+ app.state,
str(project_id),
app.definition.name,
- app.state,
format_bool(is_active),
format_bool(is_alive),
format_bool(is_suspended),
NOT_ALLOWED = 'You do not have the permissions to perform this action.'
MEMBER_NUMBER_LIMIT_REACHED = 'Maximum participant number has been reached.'
MEMBER_JOIN_POLICY_CLOSED = 'The project member join policy is cloesd.'
-MEMBER_LEAVE_POLICY_CLOSED = 'The project member leave policy is cloesd.'
+MEMBER_LEAVE_POLICY_CLOSED = 'The project member leave policy is closed.'
NOT_MEMBERSHIP_REQUEST = 'There is no such a membership request.'
MEMBERSHIP_REQUEST_EXISTS = 'There is alreary such a membership request.'
NO_APPLICANT = 'Project application requires an applicant. None found.'
"""
Validate name uniqueness among all active projects.
"""
- alive_projects = list(get_alive_projects())
- q = filter(
- lambda p: p.definition.name == self.name and \
- p.application.id != self.projectapplication.id,
- alive_projects
- )
+ q = list(get_alive_projects())
+ q = filter(lambda p: p.definition.name == self.name , q)
+ q = filter(lambda p: p.application.id != self.projectapplication.id, q)
+ if self.projectapplication.precursor_application:
+ q = filter(lambda p: p.application.id != \
+ self.projectapplication.precursor_application.id, q)
if q:
raise ValidationError(
_(astakos_messages.UNIQUE_PROJECT_NAME_CONSTRAIN_ERR)
<th>Ends</th>
<th>Enrolled</th>
<th>Status</th>
+ <th/>
<th>Membership Status</th>
<th> </th>
<th>Member accept policy</th>
<td style="width:13%">{{o.definition.end_date|date:"d/m/Y"}}</td>
<td style="width:11%">{{approved_members|length}}</td>
<td style="width:11%">
- {{o.state}}{% if o.state != 'Replaced' %}<a href="{% url project_update o.id %}">Update</a>{% endif %}
+ {{o.state}}
</td>
+ <td>{% if o.state != 'Replaced' %}<a href="{% url project_update o.id %}">Update</a>{% endif %}</td>
<td style="width:17%">
<div class="msg-wrap">
{% if user == o.owner %}