[billreminder] Creating the setup app and the option model for BillReminder's setup.
- From: Og B. Maciel <ogmaciel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [billreminder] Creating the setup app and the option model for BillReminder's setup.
- Date: Fri, 31 Jul 2009 23:32:42 +0000 (UTC)
commit ccd2e6a77a8476f32a0614f3aa1a9f2e615488c6
Author: Elyézer Mendes Rezende <elyezermr gmail com>
Date: Fri Jul 31 20:23:48 2009 -0300
Creating the setup app and the option model for BillReminder's setup.
src/setup/models.py | 17 +++++++++++++++++
src/setup/views.py | 1 +
2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/src/setup/__init__.py b/src/setup/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/src/setup/models.py b/src/setup/models.py
new file mode 100644
index 0000000..42e5c2c
--- /dev/null
+++ b/src/setup/models.py
@@ -0,0 +1,17 @@
+from django.db import models
+
+class Option(models.Model):
+ """
+ Represents the options for BillReminder's configuration.
+ """
+
+ name = models.CharField(
+ "Option name", max_length=50
+ )
+
+ value = models.CharField(
+ "Option value", max_length=150
+ )
+
+ def __unicode__(self):
+ return "%s: %s" % (self.name, self.valeu)
diff --git a/src/setup/views.py b/src/setup/views.py
new file mode 100644
index 0000000..60f00ef
--- /dev/null
+++ b/src/setup/views.py
@@ -0,0 +1 @@
+# Create your views here.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]