hi ,
In models.py i have
class Customer(...)
bill_no=models.CharFeild(...)
All i need to access the field 'bill_no' and assign a value, In
views.py i wrote
from django.db.models.signals import post_save
from mypro.myapp import Customer
def after_save(sender,ins
hi ,
i need to know how to create a non editable field in admin site .I
tried , one like below
acct_number=models.CharField(max_lenght=100,editable=False)
but it doesn't work
please any other ideas,
--~--~-~--~~~---~--~~
You received this message because you are
hi,
thanks a lot for your clarification i have tried it in
models.py ,overriding parent save method and everything works fine
On Feb 17, 11:56 am, Malcolm Tredinnick
wrote:
> On Mon, 2009-02-16 at 22:38 -0800, gganesh wrote:
> > hi,
> > i wrote
> > def after_save(sender,instance,created,**kaw
My requirement is ,user uploaded image has to be saved in Database
after a custom validation for size and has to display to user.
In models.py
class Marketplace(models.Model):
title_name=models.CharField(max_length=125)
photo1 = models.ImageField(upload_to= 'img/marketplace/%Y/
hi friends
I 'm facing a wried behavior of Imageupload
In Models.py
class Market(...)
title_name=models.CharField(max_length=125)
photo1 = models.ImageField(upload_to= 'img/marketplace/%Y/%m/
%d', null=True, blank=True)
In views.py
def postyour_adds(request):
if request.method=
hi gp,
In models.py
class BankerCategory(models.Model):
name = models.CharField(max_length=125,unique=True)
class Banker(models.Model):
bankercategory = models.ForeignKey(BankerCategory)
class Homeloan(models.Model):
banker = model
erCategory name fields as
1.Bank
2.Finance
I need to display
loan_type:Fixed
Bank
...
..
Finace
...
...
loan_type:Floating
Bank
...
..
Finace
...
...
On Mar 9, 4:00 pm, Malcolm Tredinnick
wrote:
> On Mon, 2009-03-09 at 03:54 -0700, guptha wrote:
> >
hi group,
class Parent(models.Model):
user = models.ForeignKey(User,unique=True)
school=models.ForeignKey(School)
def __unicode__(self):
return self.user.username
class Student(models.Model):
user = models.ForeignKey(User,unique=True)
school=models.ForeignKey(School)
Hi group ,
I am getting error like "Key 'fathers_photo' not found in
{{fatherprofileform.as_p}}
Here FatherProfileForm does not represent UserProfile model .In this
case how can the error be rectified ?
Ganesh
--
You received this message because you are subscribed to the Google Groups
"
Hi group,
Is there any break statement in Django template like one in java to
break for loop as an element if found .
{% for enqhasparent in enqhasparentobjs %}
{% ifequal enobj.id enqhasparent.enquiry.id %}
{{enobj.student_name|capfirst}}
{% en
10 matches
Mail list logo