mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Replaced __unicode__ with __str__ for models
This commit is contained in:
parent
cfd739778c
commit
9a75ceb0e5
5 changed files with 14 additions and 12 deletions
|
@ -1,11 +1,12 @@
|
|||
from django.db.models import Model, CharField, IntegerField
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
|
||||
class Flavor(Model):
|
||||
label = CharField(_('label'), max_length=12)
|
||||
memory = IntegerField(_('memory'))
|
||||
vcpu = IntegerField(_('vcpu'))
|
||||
disk = IntegerField(_('disk'))
|
||||
|
||||
def __unicode__(self):
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue