Skip to content

Commit

Permalink
atualiza versão e docs - atualizado pacote PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
cadu-leite committed Apr 15, 2013
1 parent 069900c commit 9914530
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
21 changes: 21 additions & 0 deletions README.rst
Expand Up @@ -108,6 +108,27 @@ Template
{{ form }}


Template para o widget
~~~~~~~~~~~~~~~~~~~~~~
A partir da versão 0.8.0 é possível customizar o template utilizado para apresentar o widget.
Os templates identificados pela aplicação são :

1. municipio_field.html
2. uf_field.html

e o nome da variável a ser substituída é ``{{wselect}}``

ex.: de template para BootStrapTwitter

::

<div class="control-group">
<div class="controls"><label>Município</label> {{wselect}} </div>
</div>

adicione o HTML acima em um template dentro de por exemplo <app>/municipios/templates/municipios/municipio_field.html


URLs
~~~~
Adicionar as urls da aplicação no arquivo definido pelo ``ROOT_URLCONF`` do setings.py.
Expand Down
6 changes: 3 additions & 3 deletions setup.py
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages

setup(
name='django-municipios',
version='0.7.1',
version='0.8.0',
description='Aplicação plugável Django com modelos e widgets para os Municípios Brasileiros',
long_description=open('README.rst').read(),
author='ZNC Sistemas',
Expand All @@ -26,4 +26,4 @@
'Topic :: Utilities',
'Natural Language :: Portuguese (Brazilian)'
],
)
)

0 comments on commit 9914530

Please sign in to comment.