Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Remove django-uuidfield requirement, already intregrated into Django 1.8, closes #42 #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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