daphne/tests/models.py
Artem Malyshev 672de2b2a3 Separate tests into own directory. (#531)
* 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.
2017-02-16 10:22:23 -08:00

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)