Skip to content

Commit 979efb4

Browse files
committed
Update README.md
1 parent a6fdc61 commit 979efb4

File tree

3 files changed

+33
-27
lines changed

3 files changed

+33
-27
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111

1212
### Changed
1313

14+
- Improve documentation
15+
1416
### Removed
1517

1618
## [1.20.4](https://pypi.org/project/model-bakery/1.20.4/)

README.md

+29-26
Original file line numberDiff line numberDiff line change
@@ -5,76 +5,79 @@
55
[![Latest PyPI version](https://img.shields.io/pypi/v/model_bakery.svg)](https://pypi.python.org/pypi/model_bakery/)
66
[![Documentation Status](https://readthedocs.org/projects/model-bakery/badge/?version=latest)](https://model-bakery.readthedocs.io/en/latest/?badge=latest)
77

8-
*Model Bakery* offers you a smart way to create fixtures for testing in
9-
Django.
10-
With a simple and powerful API you can create many objects with a single
11-
line of code.
8+
*Model Bakery* offers you a smart way to create fixtures for testing in Django. With a simple and powerful API, you can create many objects with a single line of code.
129

13-
Model Bakery is a rename of the legacy [Model Mommy project](https://pypi.org/project/model_mommy/).
10+
> **Note:** Model Bakery is a rename of the legacy [Model Mommy project](https://pypi.org/project/model_mommy/).
1411
15-
## Install
12+
## Installation
1613

1714
```bash
1815
pip install model-bakery
1916
```
2017

21-
## Usage and Info
22-
23-
### Basic usage
18+
## Basic usage
2419

2520
```python
26-
2721
# models.py
28-
2922
from django.db import models
3023

3124
class Customer(models.Model):
32-
enjoy_jards_macale = models.BooleanField()
3325
name = models.CharField(max_length=30)
3426
email = models.EmailField()
3527
age = models.IntegerField()
28+
is_jards_macale_fan = models.BooleanField()
3629
bio = models.TextField()
37-
days_since_last_login = models.BigIntegerField()
3830
birthday = models.DateField()
3931
last_shopping = models.DateTimeField()
4032

4133
# test_models.py
42-
4334
from django.test import TestCase
4435
from model_bakery import baker
45-
from pprint import pprint
4636

4737
class TestCustomerModel(TestCase):
4838
def setUp(self):
4939
self.customer = baker.make('shop.Customer')
50-
pprint(self.customer.__dict__)
40+
print(self.customer.__dict__)
5141

5242
"""
5343
{'_state': <django.db.models.base.ModelState object at 0x1129a3240>,
5444
'age': 3841,
5545
'bio': 'vUFzMUMyKzlnTyiCxfgODIhrnkjzgQwHtzIbtnVDKflqevczfnaOACkDNqvCHwvtWdLwoiKrCqfppAlogSLECtMmfleeveyqefkGyTGnpbkVQTtviQVDESpXascHAluGHYEotSypSiHvHzFteKIcUebrzUVigiOacfnGdvijEPrZdSCIIBjuXZMaWLrMXyrsUCdKPLRBRYklRdtZhgtxuASXdhNGhDsrnPHrYRClhrSJSVFojMkUHBvSZhoXoCrTfHsAjenCEHvcLeCecsXwXgWJcnJPSFdOmOpiHRnhSgRF',
5646
'birthday': datetime.date(2019, 12, 3),
57-
'enjoy_jards_macale': True,
47+
'email': '[email protected]',
48+
'is_jards_macale_fan': True,
5849
'id': 1,
5950
'last_shopping': datetime.datetime(2019, 12, 3, 21, 42, 34, 77019),
60-
'name': 'qiayYnESvqcYLLBzxpFOcGBIfnQEPx',
61-
'days_since_last_login': 6016}
51+
'name': 'qiayYnESvqcYLLBzxpFOcGBIfnQEPx'}
6252
"""
63-
6453
```
6554

66-
Check out [documentation](<http://model-bakery.readthedocs.org/>) for more complete examples.
55+
## Documentation
56+
57+
For more detailed information, check out the [full documentation](https://model-bakery.readthedocs.io/).
6758

6859
## Contributing
6960

70-
Detailed info [here](https://github.com/model-bakers/model_bakery/blob/main/CONTRIBUTING.md).
61+
As an open-source project, Model Bakery welcomes contributions of many forms:
62+
63+
- Code patches
64+
- Documentation improvements
65+
- Bug reports
66+
67+
Take a look at our [contribution guidelines](https://github.com/model-bakers/model_bakery/blob/main/CONTRIBUTING.md) for instructions
68+
on how to set up your local environment.
7169

7270
## Maintainers
7371

74-
- [Bernardo Fontes](https://github.com/berinhard/)
75-
- [Rustem Saiargaliev](https://github.com/amureki/)
76-
- [Tim Klein](https://github.com/timjklein36)
72+
- [Bernardo Fontes](https://github.com/berinhard/)
73+
- [Rustem Saiargaliev](https://github.com/amureki/)
74+
- [Tim Klein](https://github.com/timjklein36)
7775

7876
## Creator
7977

80-
- [Vanderson Mota](https://github.com/vandersonmota/)
78+
- [Vanderson Mota](https://github.com/vandersonmota/)
79+
80+
## License
81+
82+
Model Bakery is licensed under the MIT License.
83+
See the [LICENSE](https://github.com/model-bakers/model_bakery/blob/main/LICENSE) file for more information.

docs/index.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ As an open-source project, Model Bakery welcomes contributions of many forms:
3333
- Documentation improvements
3434
- Bug reports
3535

36-
Take a look at our [GitHub repo](https://github.com/model-bakers/model_bakery/blob/main/CONTRIBUTING.md) for instructions on how to set up your local environment to help Model Bakery to grow.
36+
Take a look at our [GitHub repo](https://github.com/model-bakers/model_bakery/blob/main/CONTRIBUTING.md) for instructions
37+
on how to set up your local environment.
3738

3839
## Support
3940

0 commit comments

Comments
 (0)