Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 2, 2022. It is now read-only.

Commit 1de1813

Browse files
author
Dylan Verheul
committed
Update README.rst
1 parent 96b3320 commit 1de1813

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,24 @@ Installation
2424
Example code (foo/models.py)
2525
----------------------------
2626

27-
.. code:: Django
27+
.. code:: Django
2828
2929
from django.db import models
30-
30+
3131
from mav.decorators import mav
32-
32+
3333
@mav
3434
class Foo(models.Model):
35-
name = models.CharField(max_length=100)
36-
35+
name = models.CharField(max_length=100)
36+
3737
# The @mav decorator will generate a FooAttr class in mav.attrs:
38-
38+
3939
class FooAttr(AbstractModelAttribute):
40-
# Inherited from AbstractModelAttribute
41-
attribute = models.ForeignKey(Attribute)
42-
value = models.TextField(...)
43-
# Generated
44-
object = models.ForeignKey(Foo, related_name='attrs')
40+
# Inherited from AbstractModelAttribute
41+
attribute = models.ForeignKey(Attribute)
42+
value = models.TextField(...)
43+
# Generated
44+
object = models.ForeignKey(Foo, related_name='attrs')
4545
4646
4747
Documentation
@@ -82,4 +82,4 @@ Original author & Development lead: `Dylan Verheul <https://github.com/dyve>`_.
8282

8383
Thanks to everybody that has contributed pull requests, ideas, issues, comments and kind words.
8484

85-
Please see AUTHORS.rst for a list of contributors.
85+
Please see AUTHORS.rst for a list of contributors.

0 commit comments

Comments
 (0)