mirror of
https://github.com/HackSoftware/Django-Styleguide.git
synced 2024-11-22 01:26:43 +03:00
Remove the explicit mention of defining a PK using UUID
- https://github.com/HackSoftware/Django-Styleguide/issues/136
This commit is contained in:
parent
d7d50a9d93
commit
645c7214b8
|
@ -221,8 +221,6 @@ It's a good idea to define a `BaseModel`, that you can inherit.
|
|||
|
||||
Usually, fields like `created_at` and `updated_at` are perfect candidates to go into a `BaseModel`.
|
||||
|
||||
Defining a primary key can also go there. Potential candidate for that is the [`UUIDField`](https://docs.djangoproject.com/en/dev/ref/models/fields/#uuidfield)
|
||||
|
||||
Here's an example `BaseModel`:
|
||||
|
||||
```python
|
||||
|
|
Loading…
Reference in New Issue
Block a user