Re: Want to change home->blog to Admin home -> blog

2014-11-17 Thread Sachin Tiwari
On Thursday, November 13, 2014 7:49:28 PM UTC+5:30, Sachin Tiwari wrote: > > Hi All, > > I want to change Home link at admin page to Admin Home -> blog -> ... > > I tried by modifying base.html and base_site.html in my > templates/admin/, but it would wor

Re: daterange filter

2014-11-17 Thread Sachin Tiwari
On Saturday, November 15, 2014 4:47:12 PM UTC+5:30, Sachin Tiwari wrote: > > Hi All, > > I am using below daterange filter package but it did not work if > from_date and to_date field are same, > > > https://github.com/DXist/django-daterange-filter/blob/master/da

Re: daterange filter

2014-11-15 Thread Sachin Tiwari
On Saturday, November 15, 2014 4:47:12 PM UTC+5:30, Sachin Tiwari wrote: > > Hi All, > > I am using below daterange filter package but it did not work if > from_date and to_date field are same, > > > https://github.com/DXist/django-daterange-filter/blob/master/da

Re: Want to change home->blog to Admin home -> blog

2014-11-15 Thread Sachin Tiwari
On Thursday, November 13, 2014 7:49:28 PM UTC+5:30, Sachin Tiwari wrote: > > Hi All, > > I want to change Home link at admin page to Admin Home -> blog -> ... > > I tried by modifying base.html and base_site.html in my > templates/admin/, but it would wor

daterange filter

2014-11-15 Thread Sachin Tiwari
Hi All, I am using below daterange filter package but it did not work if from_date and to_date field are same, https://github.com/DXist/django-daterange-filter/blob/master/daterange_filter/filter.py Please suggest the solution I was trying by converting to_date + timedelta(days=1) but it gi

Re: Want to change home->blog to Admin home -> blog

2014-11-15 Thread Sachin Tiwari
On Thursday, November 13, 2014 7:49:28 PM UTC+5:30, Sachin Tiwari wrote: > > Hi All, > > I want to change Home link at admin page to Admin Home -> blog -> ... > > I tried by modifying base.html and base_site.html in my > templates/admin/, but it would not wor

Re: Want to change home->blog to Admin home -> blog

2014-11-15 Thread Sachin Tiwari
On Thursday, November 13, 2014 7:49:28 PM UTC+5:30, Sachin Tiwari wrote: > > Hi All, > > I want to change Home link at admin page to Admin Home -> blog -> ... > > I tried by modifying base.html and base_site.html in my > templates/admin/, but it would wor

Want to change home->blog to Admin home -> blog

2014-11-13 Thread Sachin Tiwari
Hi All, I want to change Home link at admin page to Admin Home -> blog -> ... I tried by modifying base.html and base_site.html in my templates/admin/, but it would work {% block breadcrumbs %} {% trans ' Admin Home' %} {% if title %} › {{ title }}{% endif %} {% endbl

Re: dropdown_filter in django

2014-10-21 Thread Sachin Tiwari
Hi Collin, It works when I comment the filters.py and change admin.py as below, from receivedata.filters import DropdownFilter class PersonAdmin (admin.ModelAdmin): list_filter = (PersonIdFilter) Thanks & Regards, Sachin Tiwari -- You received this message because you are subscr

dropdown_filter in django

2014-10-20 Thread Sachin Tiwari
Hi, I want to make my custom filter into drop down filter, class PersonIdFilter(SimpleListFilter): title = _('Personid') parameter_name ='personid' contlist = list(PersonInfo.objects.all()) def lookups(self, request, model_admin): lst = [] for id in self.contlist

Re: Unable to store static

2014-10-16 Thread Sachin Tiwari
Hi All Thanks for your kind support, I tried with single quotes but it also did not works, My static url is STATIC_URL = '/static/' -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Unable to access view variable

2014-10-16 Thread Sachin Tiwari
Hi , I have below lines in view.py and acesssing this variable in html but not getting output, def index (request): pers = list(PersonInfo.objects.filter()) return render_to_response('index.html') html code {% for id in p

Re: Unable to store static

2014-10-16 Thread Sachin Tiwari
I used {% load staticfiles%} but it did not works. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this gr

Unable to store static

2014-10-16 Thread Sachin Tiwari
Hi, I created templates and static directory in parallel with my project directory like below but only html part is visible to me css and js part are not visible, //templates/home.html //static/static/css/ //static/static/js/ html use, {% load static %} And added

Re: django UserAdmin

2014-10-08 Thread Sachin Tiwari
> > Hi Collin, > Thanks, I did some mistake, its working. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post t

Re: django UserAdmin

2014-10-08 Thread Sachin Tiwari
Hi Collin, It gives same type of error. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send

Re: django UserAdmin

2014-10-08 Thread Sachin Tiwari
On Tuesday, October 7, 2014 2:16:53 PM UTC+5:30, Sachin Tiwari wrote: > > Hi, > > I added an extra field phone number in existiing user model and now I > tyring to access that field by below method, > > UserAdmin.list_display = ('email', 

Re: django UserAdmin

2014-10-08 Thread Sachin Tiwari
On Tuesday, October 7, 2014 2:16:53 PM UTC+5:30, Sachin Tiwari wrote: > > Hi, > > I added an extra field phone number in existiing user model and now I > tyring to access that field by below method, > > UserAdmin.list_display = ('email', 

django UserAdmin

2014-10-07 Thread Sachin Tiwari
Hi, I added an extra field phone number in existiing user model and now I tyring to access that field by below method, UserAdmin.list_display = ('email', 'first_name', 'last_name','is_staff', SMSRegistration.phone_no) type object 'SMSRegistration' has no attribute 'phone_no' Please help.

Re: Custom User

2014-09-30 Thread Sachin Tiwari
a new User adminclass UserAdmin(UserAdmin): inlines = (EmployeeInline, ) # Re-register UserAdminadmin.site.unregister(User)admin.site.register(User, UserAdmin) Now I want to show it with main users list page. On Tuesday, September 30, 2014 3:20:34 PM UTC+5:30, Sachin Tiwari wrote: > > H

Re: Custom User

2014-09-30 Thread Sachin Tiwari
Hi Tundebabzy, Am I asking something wrong? please help me if possible. On Tuesday, September 30, 2014 3:20:34 PM UTC+5:30, Sachin Tiwari wrote: > > Hi > > I want to display a phone number field at users list page, > > Username emailAddress FirstName LastName staffs

Custom User

2014-09-30 Thread Sachin Tiwari
Hi I want to display a phone number field at users list page, Username emailAddress FirstName LastName staffstatus PhoneNumber sachin a...@g.com sachintiwari True 000 -- You received this message because you are subscribed to

How to make a phone number field mandatory like password.

2014-09-26 Thread Sachin Tiwari
Hi I am learning django and I want to add a phone number field which would be mandatory when we use add user button in users section. I tried it with blank=False or null=False but it would not work for me. I am also using django-phone-number field package. Thanks -- You received this mes