Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Error Message #5

Open
ranagoutam opened this issue Jul 14, 2011 · 0 comments
Open

Getting Error Message #5

ranagoutam opened this issue Jul 14, 2011 · 0 comments

Comments

@ranagoutam
Copy link

Illegal assignment of '904567891484' to 'value' in class Ean13BarcodeWidget

my model is as

class Items(models.Model):
i_date = models.DateTimeField(auto_now_add=True,verbose_name="item Date")
barcode = models.CharField(primary_key=True, max_length=24, verbose_name="item Id", help_text="place the barcode here")

view.py:

def barId_report(request):
resp = HttpResponse(mimetype='application/pdf')
item_list = Items.objects.all()
report = SimpleListReport(queryset=item_list)
report.generate_by(PDFGenerator, filename=resp)

    return resp

report.py

the normal one as given on the examples with code replaced to barcode.

By my gesture it is some problem arising due to the data retieved from my model as Unicode.
How to Over Come please help..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant