Browse files

Configurando app geography no admin

  • Loading branch information...
1 parent 681653a commit 642f89b5e4a2fc91e2e4742a9b30bc2354fcc3b2 @diogobaeder committed Apr 6, 2013
View
6 djangotranslationtest/geography/admin.py
@@ -0,0 +1,6 @@
+from django.contrib import admin
+
+from djangotranslationtest.geography.models import Address
+
+
+admin.site.register(Address)
View
8 djangotranslationtest/geography/models.py
@@ -1,3 +1,9 @@
+# -*- coding: utf-8 -*-
from django.db import models
-# Create your models here.
+
+class Address(models.Model):
+ street = models.CharField(max_length=255, verbose_name=u'rua')
+
+ class Meta:
+ verbose_name = u'endereço'
View
2 djangotranslationtest/settings.py
@@ -125,6 +125,8 @@
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
'django.contrib.admindocs',
+
+ 'djangotranslationtest.geography',
)
# A sample logging configuration. The only tangible logging

0 comments on commit 642f89b

Please sign in to comment.