File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " django-user-defined-fields"
3
- version = " 0.0.21 "
3
+ version = " 0.0.22 "
4
4
description = " A Django app for user defined fields"
5
5
authors = [
" Aidan Lister <[email protected] >" ]
6
6
license = " MIT"
Original file line number Diff line number Diff line change 6
6
sys .stderr .write ("Use of factories requires factory_boy\n " )
7
7
exit (1 )
8
8
9
+ try :
10
+ from factory .django import DjangoModelFactory
11
+ except ImportError :
12
+ from factory import DjangoModelFactory
13
+
9
14
from django .utils .text import slugify
10
15
11
16
from .models import ExtraField
12
17
13
18
14
- class ExtraFieldFactory (factory . DjangoModelFactory ):
19
+ class ExtraFieldFactory (DjangoModelFactory ):
15
20
label = factory .Faker ("company" )
16
21
name = factory .LazyAttribute (lambda o : slugify (o .label ))
17
22
widget = "TextInput"
You can’t perform that action at this time.
0 commit comments