Skip to content
Browse files

iniciando a aplicação catalogo. Desta vez de verdade.

  • Loading branch information...
1 parent 125d903 commit 58110c90de4097d6f708d91036fd34a99b8fefbb @huogerac committed Apr 17, 2012
View
0 circulante/circulante/catalogo/__init__.py
No changes.
View
15 circulante/circulante/catalogo/models.py
@@ -0,0 +1,15 @@
+#coding=utf-8
+from django.db import models
+
+TIPOS_PUBLICACAO = (
+ (u'livro', u'Livro'),
+ (u'apostila', u'Apostila'),
+ (u'gibi', u'Gibi'),
+)
+
+class Publicacao(models.Model):
+ tipo = models.CharField(max_length=16, choices=TIPOS_PUBLICACAO,
+ default=TIPOS_PUBLICACAO[0][0])
+ id_padrao = models.CharField(max_length=32, blank=True)
+ titulo = models.CharField(max_length=256)
+
View
16 circulante/circulante/catalogo/tests.py
@@ -0,0 +1,16 @@
+"""
+This file demonstrates writing tests using the unittest module. These will pass
+when you run "manage.py test".
+
+Replace this with more appropriate tests for your application.
+"""
+
+from django.test import TestCase
+
+
+class SimpleTest(TestCase):
+ def test_basic_addition(self):
+ """
+ Tests that 1 + 1 always equals 2.
+ """
+ self.assertEqual(1 + 1, 2)
View
1 circulante/circulante/catalogo/views.py
@@ -0,0 +1 @@
+# Create your views here.

0 comments on commit 58110c9

Please sign in to comment.
Something went wrong with that request. Please try again.