Commits

Author Commit Message Labels Comments Date
João Pedro Francese
Absolutize filter.
João Pedro Francese
Merge
João Pedro Francese
Added DetourEmailBackend.
João Pedro Francese
Adding {% absurl %} templatetag.
João Pedro Francese
Making method_cache work with classmethods.
João Pedro Francese
Added ProfilerMiddleware.
pabd...@monaco
Adding formatter.py containg the BaseFormatter class. This class allows a model's instance to access an arbitrary class which extends BaseFormatter. This is usefull to separate instances methods that return structured data from instances methods that return formatted data. The BaseFormatter class is some how a linking class between a view and a model. Methods of this class should return formatted data to be displayed for end-users, while instance methods from original model should only return structured data according to Python's good practices. Usage example.: on model: def ProductFormatter(BaseFormatter): def display_us_price(self): return "USD" + self.price def display_br_price(self): return "BRL" + self.price def Product(models.Model) name = models.CharField() price = models.DecimalField() ... formatter = ProductFormatter.new() on a view: product = Product.objects.get(pk=1) print product.formatter.display_br_price()
João Pedro Francese
Easter egg in Profiler.
João Pedro Francese
Added profiling tools and @method_cache.
João Pedro Francese
Added ExcludeManager, a generic manager.
João Pedro Francese
Fixing AjaxView when the view returns a 2-elements list.
João Pedro Francese
Added FilterManager, a generic manager.
Pablo Abdelhay
Added function 'date_to_utc' in utils. Returns the UTC (Coordinated Universal Time) format of a date or datetime.
Ulysses Vilela
Use the contents of a .env file to set the DJANGO_ENV for a project
João Pedro Francese
* AjaxView now accepts alternative returns: - (HTTP_status_code, context) to return a different HTTP status code with a specific context - HTTP_status_code to return a different HTTP status code with no context * JsonResponse now accepts an optional response_cls argument used to build the response instance. * JsonErrorResponse removed.
Pablo Abdelhay
Created JsonErrorResponse in http.responses. Same as JsonResponse, but sending an HttpResponseBadResquest instead.
João Pedro Francese
Created ResponseWrapperException in AjaxView, to allow context methods to present a specific HttpResponse.
Ulysses Vilela
Added AjaxView. Returns the rendered HTML if the request.is_ajax() == False, otherwise returns a JsonResponse of the context. Define httpmethod_context(self, request) methods [e.g. get_context] that return a context object, which should be dictionary-like objects that SimpleJson knows how to serialize. Set a template_name attribute in your class with the template name for this view. If not set, non-ajax request…
João Pedro Francese
Fixing tab.
João Pedro Francese
Adding ExtendedJSONEncoder. JsonResponse now accepts an encoder class, and uses ExtendedJSONEncoder by default.
fvianna
Correção: Erro para flag DEBUG = False Refactor: Reestruturação da funcionalidade.
Leonardo Santos
Added __init__.py to settings/ folder in order to turn it into a package
João Pedro Francese
Settings loader.
João Pedro Francese
Using django_inoa as an app now automatically replaces the base Django Model class's __unicode__() method.
João Pedro Francese
Added 'change_actions' admin feature and 'safe_bulk_delete' admin action. The inoa package is now a Django app. Adding this app to INSTALLED_APPS is required for these two new features.
João Pedro Francese
Added queryset_str_join().
João Pedro Francese
Renamed models.utils.clone_model_instance() to clone_instance(). Added SelectRelatedManager.
João Pedro Francese
Added GenericObject.
João Pedro Francese
Merge
João Pedro Francese
Modeling utilities.
  1. Prev
  2. Next