This repository has been archived on 2021-04-21. You can view files and clone it, but cannot push or open issues or pull requests.
djangoldp-webpushnotification/djangoldp_example/factories.py

13 lines
342 B
Python
Raw Normal View History

2019-01-11 14:15:11 +00:00
import factory
import hashlib
from .models import ExampleModel
from django.db.models.signals import post_save
@factory.django.mute_signals(post_save)
class ExampleFactory(factory.django.DjangoModelFactory):
class Meta:
model = ExampleModel
# Please refer to Factory boy documentation
# https://factoryboy.readthedocs.io