Hello everyone,
I have an e-commerce site
A user arrives without first logging in, adds a few things to their cart,
a session is established for this user, and then proceeds to the checkout.
the command is then saved in database.
Now I need the user to log in and see their recent commands,u
in your model create a function
*def admin_photo(self):*
*return '' % self.photo.url*
*admin_photo.allow_tags = True*
then just add it in the display list :
*class MymodelAdmin(admin.ModelAdmin):*
*list_display = (...,'photo') *
*admin.site.register(Mymodel, MymodelAdmin)*
L
add try and catch to your request
Le samedi 13 avril 2013 15:59:49 UTC, Harjot Mann a écrit :
>
> hello friends
>
> i have made a project on studnt dmc records in django...in which i search
> for student' s dmcs using roll number..it works fine
> but the problem is that when i am typing a fake r
Hello everyone,
I have this error since a long time but can't figure it out :
*Caught TypeError while rendering: coercing to Unicode: need string or
buffer, NoneType found*
It happens in admin when I try to add or modify on one of my models
(display works fine)
This is the model:
class
I'm trying to build an e-learning platform
I have *users (Utilisateur) *who can take several *courses* ,each course
have several *modules* and a module can be in several courses
a user can be a student or teacher or admin, a student is "managed" by a
teacher or several and a teacher can also be
user
because I wouldnt tell which course affected to which user only by
affecting a module to him knowing that the module can belong to several
courses, is it correct to add a parcours =
models.ManyToManyField('Parcours') in Utilisateur?
Help me please
Thanks
Le lundi 26 août 201
6 matches
Mail list logo