from django.db import models
from django.utils.translation import ugettext as _

from egielda import settings


class BookType(models.Model):
    publisher = models.CharField(max_length=150)
    title = models.CharField(max_length=150)
    price = models.IntegerField()

    def price_string(self):
        return "%(price).2f%(currency)s" % {'price': (self.price / 100),
                                            'currency': getattr(settings, 'CURRENCY', 'USD')}

    def __str__(self):
        return _(
            "%(publisher)s %(title)s, Edition %(edition)d %(publication_year)d" % {
                'publisher': self.publisher,
                'title': self.title, 'edition': self.edition,
                'publication_year': self.publication_year})
@@ -541,50 +541,8 @@
 le)s
-, Edition %25(edition)d %25(publication_year)d
 %22 %25 
@@ -627,90 +627,6 @@
 itle
-, 'edition': self.edition,%0A                'publication_year': self.publication_year
 %7D)

Fix __str__ method for BookType Model