mirror of
https://github.com/django/daphne.git
synced 2025-04-24 18:56:41 +03:00
* Move project tests to its own directory. * Install mock test dependency for Python2 only. * Do not install tox inside tox environment. * Exclude tests from sdist. * Use recent pip on Travis-CI.
13 lines
268 B
Python
13 lines
268 B
Python
from uuid import uuid4
|
|
|
|
from django.db import models
|
|
|
|
|
|
class TestUUIDModel(models.Model):
|
|
"""
|
|
Simple model with UUIDField as primary key for tests.
|
|
"""
|
|
|
|
id = models.UUIDField(primary_key=True, default=uuid4)
|
|
name = models.CharField(max_length=255)
|