Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Update new_module.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxMaSk committed Apr 20, 2015
1 parent a6be757 commit 04f6683
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/new_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ the model **th_dummy/models.py** :

.. code-block:: python
@python_2_unicode_compatible
class Dummy(Services):
# put whatever you need here
Expand All @@ -44,7 +45,7 @@ the model **th_dummy/models.py** :
class Meta:
app_label = 'django_th'
def __unicode__(self):
def __str__(self):
return "%s" % (self.name)
def show(self):
Expand Down

0 comments on commit 04f6683

Please sign in to comment.