Skip to content

Commit

Permalink
Remove django-uuidfield requirement, as it's already intregrated into…
Browse files Browse the repository at this point in the history
… Django 1.8, closes ustream#42
  • Loading branch information
Stéphane KANSCHINE committed Nov 15, 2017
1 parent d6ac7bd commit d81fe2f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions openduty/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import python_2_unicode_compatible
from django.contrib.auth.models import User
from uuidfield import UUIDField
from django.core.exceptions import ValidationError
from schedule.models import Calendar
from django.contrib.auth import models as auth_models
Expand Down Expand Up @@ -67,7 +66,7 @@ class Service(models.Model):
Incidents are representations of a malfunction in the system.
"""
name = models.CharField(max_length=80, unique=True)
id = UUIDField(primary_key=True, auto=True)
id = models.UUIDField(primary_key=True, default=uuid.uuid4)
retry = models.IntegerField(blank=True, null=True)
policy = models.ForeignKey(SchedulePolicy, blank=True, null=True)
escalate_after = models.IntegerField(blank=True, null=True)
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ django-annoying==0.8.2
django-auth-ldap==1.2.6
django-celery==3.1.16
django-scheduler==0.7.5
django-uuidfield==0.5.0
djangorestframework==3.1.3
django-tables2-simplefilter==0.1
django-tables2==1.0.4
Expand Down

0 comments on commit d81fe2f

Please sign in to comment.