Renamed app to eav, added version to __init__

This commit is contained in:
David Gelvin 2010-09-23 13:42:30 +03:00
parent e5d83e365a
commit c7e595fdf9
2 changed files with 18 additions and 1 deletions

View file

@ -17,4 +17,21 @@
# You should have received a copy of the GNU Lesser General Public License
# along with EAV-Django. If not, see <http://gnu.org/licenses/>.
VERSION = (0, 9, 0, "dev", 'a')
def get_version():
if VERSION[3] == "final":
return "%s.%s.%s" % (VERSION[0], VERSION[1], VERSION[2])
elif VERSION[3] == "dev":
if VERSION[2] == 0:
return "%s.%s.%s%s" % (VERSION[0], VERSION[1], VERSION[3], VERSION[4])
return "%s.%s.%s.%s%s" % (VERSION[0], VERSION[1], VERSION[2], VERSION[3], VERSION[4])
else:
return "%s.%s.%s%s" % (VERSION[0], VERSION[1], VERSION[2], VERSION[3])
__version__ = get_version()

View file

@ -3,7 +3,7 @@ from django.db import models
class Patient(models.Model):
class Meta:
app_label = 'eav_ng'
app_label = 'eav'
name = models.CharField(max_length=20)