mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-04-24 17:04:43 +00:00
Renamed app to eav, added version to __init__
This commit is contained in:
parent
e5d83e365a
commit
c7e595fdf9
2 changed files with 18 additions and 1 deletions
17
__init__.py
17
__init__.py
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue