Re: Humanize naturaltime alternative phrasing

2018-06-02 Thread Greg
That's a great question. My guess would be that there is an equivalent in some languages but not all. It is tricky, though; French at least has both equivalent phrasings, but the localization is actually already using the phrasing that more closely matches "in five minutes." Some translations coul

Re: Abridged summary of django-developers@googlegroups.com - 3 updates in 2 topics

2016-10-03 Thread Greg Brown
On 3 Oct 2016, at 16:39, django-developers@googlegroups.com wrote: = Today's topic summary = Group: django-developers@googlegroups.com Url:

Re: Overriding Class-based View Form Validation

2015-01-02 Thread Greg Back
decided on this because I was actually proposing modifying some of Django's classes themselves; if get_form_kwargs works, I obviously wouldn't need to do that. Thanks again Greg On Thursday, December 11, 2014 5:12:53 PM UTC-6, Curtis Maloney wrote: > > Firstly, I think this query

Re: Overriding Class-based View Form Validation

2014-12-10 Thread Greg Back
parent class, then adding the request.user to the form.instance. This works, but has the side effect of also being called during GET requests, which doesn't break anything but is suboptimal. Does that all make sense? Am I missing a more obvious way of doing this? Thanks, Greg -- You re

Overriding Class-based View Form Validation

2014-12-10 Thread Greg Back
Hello- I was wondering if it would be reasonable to modify the `django.views.generic.edit.ProcessFormView` class, such that the `post()` function calls a (hypothetical) `self.validate_form(form)` function rather than directly calling `form.is_valid()`. The default implementation of `validate_f

Should a warning be raised for abstract models with no app_label?

2014-10-05 Thread Greg Brown
#x27;m happy to submit a pull request if the core devs agree. Cheers, Greg -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an em

Re: Django 1.7 migrations and third-party imports

2014-09-09 Thread Greg Brown
Done. On 10 Sep 2014, at 10:45, Andrew Godwin wrote: Looks good - make a pull request and I'll hit merge. On Tue, Sep 9, 2014 at 3:05 PM, Greg Brown wrote: How's this? https://github.com/gregplaysguitar/django/commit/b4d486c80ff6bdfaec8f85e724b44ce5e74a5bb6 On Wednesday, 10

Re: Django 1.7 migrations and third-party imports

2014-09-09 Thread Greg Brown
How's this? https://github.com/gregplaysguitar/django/commit/b4d486c80ff6bdfaec8f85e724b44ce5e74a5bb6 On Wednesday, 10 September 2014 09:42:52 UTC+12, Greg Brown wrote: > > Hi all, > > Thanks for the rapid responses! I wasn't aware that South imported the > custom fie

Re: Django 1.7 migrations and third-party imports

2014-09-09 Thread Greg Brown
'd be good to explicitly document this - I'll have a look at that now. Greg On Wednesday, 10 September 2014 09:30:47 UTC+12, Andrew Godwin wrote: > > Carl is correct, South serialized a dotted path to the field while Django > writes an import in, but it's the same thing i

Django 1.7 migrations and third-party imports

2014-09-09 Thread Greg Brown
design decision, i.e. we now expected to make sure imports in our migration files always work in the future? What are the reasons for this? I can imagine this causing issues when refactoring old code for example. Thanks, Greg -- You received this message because you are subscribed to the Google

Re: use semantic versioning after 2.0?

2014-07-14 Thread Greg Chapple
eft with the extra zero as you mention, which to me seems just a bit redundant. I'm all for using semver, though! So +1 on the suggestion. Greg On 14 Jul 2014 18:07, "Collin Anderson" wrote: > Hi All, > > I just saw #23015 come through (1.9 -> 2.0 not an earth-shatterin

Re: Removing formtools from contrib (and call for maintainers)

2014-07-11 Thread Greg Chapple
I think this is a good idea, and I'd be interested in getting involved in this effort. I've been wanting to get more involved so I'll put my name forward for this, and all that it may entail! Greg On Fri, Jul 11, 2014 at 3:52 PM, Tim Graham wrote: > continuing > https:

Re: Ready for checkin

2014-06-16 Thread Greg Chapple
Would "Ready for merge" not be a more appropriate term? To me, check-in is a term I would associate with SVN. - Greg On 16 Jun 2014 18:06, "Tim Graham" wrote: > +1 to "check-in" > > On Monday, June 16, 2014 12:08:43 PM UTC-4, Daniele Procida wrote: >>

Re: auth_permission column lengths

2012-06-19 Thread Greg Aker
Good to know about native migrations, and the interim solution seems reasonable. Thanks so much! On Tuesday, June 19, 2012 10:56:38 AM UTC-5, Andrew Godwin wrote: > > On 19/06/12 16:13, Greg Aker wrote: > > Florian: > > > > I don't think waiting for migrations

Re: auth_permission column lengths

2012-06-19 Thread Greg Aker
e to run a manual SQL query to alter those columns. If this is a core philosophy not to ask users to run manual queries on updates, is starting with a patch to enforce limits here a good thing? Thanks, -greg On Tuesday, June 19, 2012 9:12:47 AM UTC-5, Florian Apolloner wrote: > > Hi

auth_permission column lengths

2012-06-19 Thread Greg Aker
rovide validation on the lengths to be entered when performing syncdb. I'm happy to work on a patch/tests if there is interest. For now, when a slightly longer class name is needed, the only real way around it is to alter the model & the db, which is not ideal. Thanks in advance!

Re: .save_m2m() failing with multi-database error

2011-09-26 Thread Greg Turner
ibe from this group, send email to > django-developers+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-developers?hl=en. -- Dr Greg Turner Director, Technical Information Architect the Interaction Consortium http://interaction.ne

Re: class based views: object instead of dictionary as context?

2011-09-02 Thread Greg Donald
n't do any heavy lifting in either realm. -- Greg Donald -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email

Re: class based views: object instead of dictionary as context?

2011-09-02 Thread Greg Donald
ctionary for designers to understand. How is something like {{ view.myvar }} any harder than {{ myvar }} for those two designers in the whole world who actually want to touch the code? -- Greg Donald -- You received this message because you are subscribed to the Google Groups "Django developers

Re: class based views: object instead of dictionary as context?

2011-09-02 Thread Greg Donald
k. > Now you have to add the method *and* pass it along in the > dictionary. Double work? It is double the work, no doubt about it. Not to mention on complicated views the context dictionary gets quite long. At that point I usually just package everything up as a single entry. -- Greg Do

#11930 - submitting patches against djangoproject.com files?

2010-12-04 Thread Greg Turner
Hi, I have a patch for #11930 that in to be applied against djangoproject.com's base.css file. As far as I can see, base.css is not in the project repository. Who is the custodian of this file, and the other CSS files? Is there a reason it's not in the repo? Greg. -- Dr Greg Turne

Re: Dallas Django sprint 4/18 - 4/19 at CoHabitat

2009-04-07 Thread Greg M
Count me in... G On Apr 7, 10:54 am, Jeremy Dunck wrote: > We've firmed up the Dallas Django sprint plans: > > Django 1.1 is around the corner, but there are lots of bugs left to > squash. Come meet the other Django people around Dallas and check out > Cohabitat, the great coworking spot in upt

contrib.localflavor: How might we add Australian postcode data, and more?

2008-04-26 Thread Greg Turner
rovide general access tools for emerging community data repositories such as: http://meta.wikimedia.org/wiki/Wikidata and http://bret.appspot.com/entry/we-need-a-wikipedia-for-data This would be useful for more than just localflavor, but of course the country-specific mo