Fixing sample data

remotes/origin/enhancement/email-actions
Alejandro Alonso 2013-07-16 11:36:39 +02:00
parent 240d57194f
commit f6d8d34433
2 changed files with 8 additions and 7 deletions

View File

@ -36,8 +36,8 @@ ISSUESTATUSES = (
) )
USSTATUSES = ( USSTATUSES = (
(1, _("Open"), False), (1, _(u"Open"), False),
(2, _("Closed"), True), (2, _(u"Closed"), True),
) )
ISSUETYPES = ( ISSUETYPES = (

View File

@ -150,6 +150,8 @@ class Command(BaseCommand):
tags=[] tags=[]
) )
us.save()
for role in project.list_roles: for role in project.list_roles:
if milestone: if milestone:
points=self.sd.db_object_from_queryset(Points.objects.filter(project=project).exclude(order=0)) points=self.sd.db_object_from_queryset(Points.objects.filter(project=project).exclude(order=0))
@ -164,7 +166,6 @@ class Command(BaseCommand):
for tag in self.sd.words().split(" "): for tag in self.sd.words().split(" "):
us.tags.append(tag) us.tags.append(tag)
us.save()
return us return us
def create_milestone(self, project, start_date, end_date): def create_milestone(self, project, start_date, end_date):