logo       

[billreminder] Creating the setup app and the option model for BillReminder: msg#08236

svn-commits-list

Subject: [billreminder] Creating the setup app and the option model for BillReminder's setup.

commit ccd2e6a77a8476f32a0614f3aa1a9f2e615488c6
Author: Elyézer Mendes Rezende <elyezermr@xxxxxxxxx>
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.
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit
your options and select the modules ('topics') you want.
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise