mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
Docs updated
This commit is contained in:
parent
2f29dce4de
commit
a6fc51c0b5
2 changed files with 7 additions and 2 deletions
|
|
@ -159,7 +159,7 @@ be the excerpt. This number can be customized by setting the
|
|||
UUIDField
|
||||
----------
|
||||
|
||||
A ``UUIDField``subclass that provides an UUID field. You can
|
||||
A ``UUIDField`` subclass that provides an UUID field. You can
|
||||
add this field to any model definition.
|
||||
|
||||
With the param ``primary_key`` you can set if this field is the
|
||||
|
|
|
|||
|
|
@ -64,7 +64,9 @@ This abstract base class provides ``id`` field on any model that inherits from i
|
|||
which will be the primary key.
|
||||
|
||||
If you dont want to set ``id`` as primary key or change the field name, you can be override it
|
||||
with our [UUIDField](https://github.com/jazzband/django-model-utils/blob/master/docs/fields.rst#uuidfield).
|
||||
with our `UUIDField`_
|
||||
|
||||
(https://github.com/jazzband/django-model-utils/blob/master/docs/fields.rst#uuidfield).
|
||||
|
||||
Also you can override the default uuid version. Versions 1,3,4 and 5 are now supported.
|
||||
|
||||
|
|
@ -76,3 +78,6 @@ Also you can override the default uuid version. Versions 1,3,4 and 5 are now sup
|
|||
class MyAppModel(UUIDModel):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
.. _`UUIDField`: https://github.com/jazzband/django-model-utils/blob/master/docs/fields.rst#uuidfield
|
||||
Loading…
Reference in a new issue